Skip to content

Commit

Permalink
Merge pull request #3547 from bettyblocks/fix/page-crash-when-id-is-u…
Browse files Browse the repository at this point in the history
…ndefined-STAR-619

fix: do not let the page crash when data is undefined
  • Loading branch information
emielwit authored Dec 11, 2024
2 parents 772d0a2 + 2e7f214 commit 334c737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/actionJSForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@
if (error) {
return <span>Something went wrong: {error.message}</span>;
}
const { id } = data;

const id = data ? data.id : null;
return <FormComponent record={id} />;
}}
</GetOne>
Expand Down

0 comments on commit 334c737

Please sign in to comment.