refactor(editor): reduce dependency to doc collection (#9492)
This commit is contained in:
@@ -41,7 +41,7 @@ const BlockSuiteEditorImpl = ({
|
||||
}: EditorProps) => {
|
||||
useEffect(() => {
|
||||
const disposable = page.slots.blockUpdated.once(() => {
|
||||
page.collection.setDocMeta(page.id, {
|
||||
page.collection.meta.setDocMeta(page.id, {
|
||||
updatedDate: Date.now(),
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user