Skip to content

Commit

Permalink
fix: drag doc from affine to edgeless (#9011)
Browse files Browse the repository at this point in the history
  • Loading branch information
Saul-Mirone committed Dec 18, 2024
1 parent d5ce3a2 commit 277d2b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit 277d2b1

Please sign in to comment.