Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
Maybe fix BlockContentEmbed site error
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvicenti committed Dec 4, 2023
1 parent c1fdead commit 8126d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/packages/shared/src/publication-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ export function BlockContentEmbed(props: BlockContentProps) {
return <EmbedTypes.GroupCard {...props} {...id} />
}
if (id?.type == 'd') {
switch (props.block.attributes.display) {
switch (props.block.attributes?.display || 'content') {
case 'card':
return <EmbedTypes.PublicationCard {...props} {...id} />
default:
Expand Down

0 comments on commit 8126d47

Please sign in to comment.