mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-18 18:41:52 +08:00
fix: add eslint-plugin-sonarjs and rules (#2767)
(cherry picked from commit 3996955e3b)
This commit is contained in:
@@ -109,7 +109,7 @@ const EditorWrapper = memo(function EditorWrapper({
|
||||
);
|
||||
const disposes = uiDecorators.map(ui => ui(editor));
|
||||
return () => {
|
||||
disposes.map(fn => fn());
|
||||
disposes.forEach(fn => fn());
|
||||
dispose();
|
||||
};
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user