diff --git a/packages/blocks/src/root-block/widgets/drag-handle/watchers/drag-event-watcher.ts b/packages/blocks/src/root-block/widgets/drag-handle/watchers/drag-event-watcher.ts index 8c7d78636834..38e9ff2f6c4b 100644 --- a/packages/blocks/src/root-block/widgets/drag-handle/watchers/drag-event-watcher.ts +++ b/packages/blocks/src/root-block/widgets/drag-handle/watchers/drag-event-watcher.ts @@ -339,7 +339,7 @@ export class DragEventWatcher { ['affine:attachment', 'affine:bookmark'].includes(first.flavour) || first.flavour.startsWith('affine:embed-') ) { - const style = first.props.style as EmbedCardStyle; + const style = (first.props.style ?? 'horizontal') as EmbedCardStyle; const width = EMBED_CARD_WIDTH[style]; const height = EMBED_CARD_HEIGHT[style];