Skip to content

Commit 61d3af0

Browse files
committed
fix: unused dispose
1 parent cc3450a commit 61d3af0

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/containers/Tenant/Query/QueryEditor/YqlEditor.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export function YqlEditor({
8181
prepareUserQueriesCache,
8282
} = useCodeAssist();
8383

84-
const {registerMonacoGhost, dispose} = useMonacoGhost({
84+
const {registerMonacoGhost} = useMonacoGhost({
8585
api: {
8686
getCodeAssistSuggestions,
8787
},
@@ -195,12 +195,6 @@ export function YqlEditor({
195195
NiceModal.show(SAVE_QUERY_DIALOG);
196196
},
197197
});
198-
199-
return () => {
200-
if (window.api.codeAssist) {
201-
dispose();
202-
}
203-
};
204198
};
205199

206200
const onChange = (newValue: string) => {

0 commit comments

Comments
 (0)