fix(editor): missing refFlavour in creation of surface-ref (#11445)

This commit is contained in:
L-Sun
2025-04-03 07:57:10 +00:00
parent cfde175298
commit 64ed23d473
3 changed files with 25 additions and 9 deletions
@@ -12,11 +12,11 @@ export type SurfaceRefProps = {
export const SurfaceRefBlockSchema = defineBlockSchema({
flavour: 'affine:surface-ref',
props: () =>
({
reference: '',
caption: '',
}) as SurfaceRefProps,
props: () => ({
reference: '',
caption: '',
refFlavour: '',
}),
metadata: {
version: 1,
role: 'content',