Skip to content

Commit

Permalink
fix: Immutable property access pattern (via #5112)
Browse files Browse the repository at this point in the history
  • Loading branch information
shockey authored Jan 7, 2019
1 parent 3691d2b commit 2db63e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export function transform(errors) {
return errors
.map(err => {
if(err.type === "schema") {
if(err.get("type") === "schema") {
return err.set("message", removeSubstring(err.get("message"), "instance\\."))
} else {
return err
Expand Down

0 comments on commit 2db63e2

Please sign in to comment.