mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-24 18:22:58 +02:00
EDITOR: fix disposing models (#1026)
This commit is contained in:
@@ -42,7 +42,7 @@ export function Editor({ onMount, onChange }: EditorProps) {
|
||||
// Unmounting
|
||||
return () => {
|
||||
subscription.current?.dispose();
|
||||
editorRef.current?.getModel()?.dispose();
|
||||
monaco.editor.getModels().forEach((model) => model.dispose());
|
||||
editorRef.current?.dispose();
|
||||
};
|
||||
// this eslint ignore instruction can potentially cause unobvious bugs
|
||||
|
||||
Reference in New Issue
Block a user