Skip to content

Commit

Permalink
fix(contentful-apps): Translation namespace fallback in case we have …
Browse files Browse the repository at this point in the history
…an undefined defaultMessage (#17646)

Add fallback in case we see an undefined value

Co-authored-by: Jón Levy <[email protected]>
  • Loading branch information
RunarVestmann and busla authored Jan 24, 2025
1 parent 04792e8 commit e2734b9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ export const App = () => {

{values[item].markdown ? (
<div>
<Markdown>{values[item].defaultMessage}</Markdown>
<Markdown>{values[item].defaultMessage ?? ''}</Markdown>
</div>
) : (
<p>{values[item].defaultMessage}</p>
<p>{values[item].defaultMessage ?? ''}</p>
)}
</TableCell>
</TableRow>
Expand Down

0 comments on commit e2734b9

Please sign in to comment.