From 994ab966883c49a9a83028c3e1813fb10ac820ed Mon Sep 17 00:00:00 2001 From: Peng Xiao Date: Wed, 24 Jan 2024 02:56:07 +0000 Subject: [PATCH] fix(playground): storybook story load issue (#5672) Since the properties adapter now depends on whenLoaded status of the ydoc, we may need to explicitly mark doc as emit if the workspace is created without using a provider. --- tests/storybook/src/stories/blocksuite-editor.stories.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/storybook/src/stories/blocksuite-editor.stories.tsx b/tests/storybook/src/stories/blocksuite-editor.stories.tsx index 280436046..219a14e44 100644 --- a/tests/storybook/src/stories/blocksuite-editor.stories.tsx +++ b/tests/storybook/src/stories/blocksuite-editor.stories.tsx @@ -37,7 +37,7 @@ DocEditor.loaders = [ id: 'test-workspace-id', schema, }); - + workspace.doc.emit('sync', []); workspace.meta.setProperties({ tags: { options: [],