Skip to content

Commit

Permalink
[C] undefined safety for metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgoff committed May 30, 2024
1 parent 2c22077 commit bb3c19c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/[locale]/[investigation]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export async function generateMetadata({
},
});

const { title } = data?.entry;
const { title } = data?.entry || {};

return { title, twitter: { title } };
}
Expand Down

0 comments on commit bb3c19c

Please sign in to comment.