mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-12 23:56:36 +08:00
fix: cleanup editor layout (#3822)
(cherry picked from commit 71cf36a300)
This commit is contained in:
@@ -106,11 +106,6 @@ const deleteLayoutAtom = atom<null, [string], void>(null, (_, set, id) => {
|
||||
});
|
||||
});
|
||||
|
||||
// clean up plugin windows when switching to other pages
|
||||
rootStore.sub(currentPageAtom, () => {
|
||||
rootStore.set(contentLayoutAtom, 'editor');
|
||||
});
|
||||
|
||||
// module -> importName -> updater[]
|
||||
export const _rootImportsMap = new Map<string, Map<string, any>>();
|
||||
const rootImportsMapSetupPromise = setupImportsMap(_rootImportsMap, {
|
||||
|
||||
Reference in New Issue
Block a user