Skip to content

Commit

Permalink
fix(is-layout-field): include typeof/null check
Browse files Browse the repository at this point in the history
  • Loading branch information
evolkmann committed Sep 9, 2024
1 parent 5c78640 commit 1c0ca81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ window[pluginNamespace].functions.isLayoutField = (field) => {
field.length > 0 &&
field.every(
(entry) =>
typeof entry === "object" &&
entry !== null &&
"attrs" in entry &&
"columns" in entry &&
"id" in entry &&
Expand Down

0 comments on commit 1c0ca81

Please sign in to comment.