Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(editor): surface-ref refFlavour should be affine:frame when reference to a frame (#11632)

donteatfriedrice74ebec007dac
diff --git a/blocksuite/affine/blocks/frame/src/frame-toolbar.ts b/blocksuite/affine/blocks/frame/src/frame-toolbar.ts
index 471947108b..1aeb60ec3e 100644
--- a/blocksuite/affine/blocks/frame/src/frame-toolbar.ts
+++ b/blocksuite/affine/blocks/frame/src/frame-toolbar.ts
@@ -80,7 +80,7 @@ const builtinSurfaceToolbarConfig = {
ctx.store.addBlock(
SurfaceRefBlockSchema.model.flavour,
- { reference: frameId, refFlavour: NoteBlockSchema.model.flavour },
+ { reference: frameId, refFlavour: FrameBlockSchema.model.flavour },
lastNoteId
);