Skip to content

Commit

Permalink
Fix null
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Jul 25, 2024
1 parent 1fe3c65 commit a083b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/editor/puck.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ const config: Config = {
let ctx = useContext(dropZoneContext);
data = useTemplArray(data);
if (ctx?.mode == "edit") {
return <div>Custom component {`<${component.identifier} />`} will render here</div>;
return <div>Custom component {`<${component?.identifier || '??'} />`} will render here</div>;
} else {
return <ComponentRender component={component} data={data} />;
}
Expand Down

0 comments on commit a083b3c

Please sign in to comment.