Skip to content

Commit

Permalink
chore: fix build issue with readOnly defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Oct 31, 2023
1 parent 0979e90 commit 9fb31ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/components/Puck/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ export function Puck({
};

if (selectedItem && itemSelector) {
const { readOnly = {} } = selectedItem || {};
const { readOnly = {} } = selectedItem;

return (
<InputOrGroup
Expand All @@ -649,7 +649,7 @@ export function Puck({
/>
);
} else {
const { readOnly = {} } = data.root || {};
const { readOnly = {} } = data.root;

return (
<InputOrGroup
Expand Down

0 comments on commit 9fb31ac

Please sign in to comment.