Skip to content

Commit

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

Fix/page crash when id is undefined star 619
  • Loading branch information
emielwit authored Dec 11, 2024
2 parents 2a617f5 + e2a8de2 commit 590b3f5
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 590b3f5

Please sign in to comment.