From 8aea2c5d8d580548b3233d0e7cc112f46ed0166e Mon Sep 17 00:00:00 2001 From: sup39 Date: Sat, 7 Oct 2023 14:20:06 +0900 Subject: [PATCH] fix: [page] adding child blocks to section block --- packages/client/src/pages/page-editor/els/page-editor.el.if.vue | 1 + .../client/src/pages/page-editor/els/page-editor.el.section.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/client/src/pages/page-editor/els/page-editor.el.if.vue b/packages/client/src/pages/page-editor/els/page-editor.el.if.vue index 6f436e9d4..6b32ff1bf 100644 --- a/packages/client/src/pages/page-editor/els/page-editor.el.if.vue +++ b/packages/client/src/pages/page-editor/els/page-editor.el.if.vue @@ -66,6 +66,7 @@ const props = withDefaults( }, }, ); +props.value.children ??= []; const getPageBlockList = inject<(any) => any>("getPageBlockList"); diff --git a/packages/client/src/pages/page-editor/els/page-editor.el.section.vue b/packages/client/src/pages/page-editor/els/page-editor.el.section.vue index d4b28e13c..476b2340e 100644 --- a/packages/client/src/pages/page-editor/els/page-editor.el.section.vue +++ b/packages/client/src/pages/page-editor/els/page-editor.el.section.vue @@ -40,6 +40,7 @@ const props = withDefaults( }, }, ); +props.value.children ??= []; const getPageBlockList = inject<(any) => any>("getPageBlockList");