mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-24 18:02:47 +08:00
fix: create linked-doc block when content can't be drop as gfx block (#10250)
This commit is contained in:
@@ -32,6 +32,7 @@ export class DNDAPIExtension extends Extension {
|
||||
docId: string;
|
||||
flavour?: string;
|
||||
blockId?: string;
|
||||
props?: Record<string, unknown>;
|
||||
}): SliceSnapshot | null {
|
||||
const { docId, flavour = 'affine:embed-linked-doc', blockId } = options;
|
||||
|
||||
@@ -43,6 +44,7 @@ export class DNDAPIExtension extends Extension {
|
||||
return null;
|
||||
}
|
||||
const props = {
|
||||
...options.props,
|
||||
...(blockId ? { blockId } : {}),
|
||||
pageId: docId,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user