mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 14:27:02 +08:00
fix: drag bookmark from note to edgeless (#10389)
This commit is contained in:
@@ -1054,6 +1054,7 @@ export class DragEventWatcher {
|
||||
|
||||
if (
|
||||
block.flavour === 'affine:attachment' ||
|
||||
block.flavour === 'affine:bookmark' ||
|
||||
block.flavour.startsWith('affine:embed-')
|
||||
) {
|
||||
const style = 'vertical' as EmbedCardStyle;
|
||||
@@ -1135,6 +1136,7 @@ export class DragEventWatcher {
|
||||
block.id === content[idx].id &&
|
||||
(block.flavour === 'affine:image' ||
|
||||
block.flavour === 'affine:attachment' ||
|
||||
block.flavour === 'affine:bookmark' ||
|
||||
block.flavour.startsWith('affine:embed-'))
|
||||
) {
|
||||
store.updateBlock(block as BlockModel, {
|
||||
|
||||
Reference in New Issue
Block a user