Skip to content

Commit

Permalink
chore: don't crash demo if data doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Dec 11, 2023
1 parent 3039fe4 commit 61debc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/demo/app/[...puckPath]/client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function Client({ path, isEdit }: { path: string; isEdit: boolean }) {

useEffect(() => {
if (!isEdit) {
const title = data?.root.props?.title || data.root.title;
const title = data?.root.props?.title || data?.root?.title;
document.title = title || "";
}
}, [data, isEdit]);
Expand Down

0 comments on commit 61debc9

Please sign in to comment.