mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 04:48:53 +00:00
fix(core): blocksuite editor runtime configs in correct timing (#10344)
This commit is contained in:
@@ -96,12 +96,9 @@ function DocPeekPreviewEditor({
|
||||
|
||||
const handleOnEditorReady = useCallback(
|
||||
(editorContainer: AffineEditorContainer) => {
|
||||
if (!editorContainer.host) {
|
||||
return;
|
||||
}
|
||||
const disposableGroup = new DisposableGroup();
|
||||
const refNodeSlots =
|
||||
editorContainer.host.std.getOptional(RefNodeSlotsProvider);
|
||||
editorContainer.std.getOptional(RefNodeSlotsProvider);
|
||||
if (!refNodeSlots) return;
|
||||
// doc change event inside peek view should be handled by peek view
|
||||
disposableGroup.add(
|
||||
|
||||
Reference in New Issue
Block a user