Skip to content

Commit

Permalink
🩹 fix(patch): errors.length undefined error (#1607)
Browse files Browse the repository at this point in the history
  • Loading branch information
kellymears authored Jul 26, 2022
1 parent 637c7e4 commit 4354543
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class Controller {
this.payload = payload
this.element.setAttribute('message', this.message ?? ``)

if (this.payload.errors.length) {
if (this.payload.errors?.length) {
return this.createError()
}

Expand Down

0 comments on commit 4354543

Please sign in to comment.