Skip to content

Commit

Permalink
fix: Fix 'error is null' when adding form block.
Browse files Browse the repository at this point in the history
Fixes #90
  • Loading branch information
mauritsvanrees committed Mar 26, 2024
1 parent c83e51c commit 06f8300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Field.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const Field = ({
return !isOnEdit && !valid;
};

const error = errorMessage ? [errorMessage] : null;
const error = errorMessage ? [errorMessage] : [];

return (
<div className="field">
Expand Down

0 comments on commit 06f8300

Please sign in to comment.