Fixed and issue where 'Use spaces' not working in the query tool. Fixes #7443

This commit is contained in:
Aditya Toshniwal
2022-06-13 11:46:09 +05:30
committed by Akshay Joshi
parent f615ef30f9
commit ea3203f466
2 changed files with 2 additions and 1 deletions

View File

@@ -463,7 +463,7 @@ export default function CodeMirror({currEditor, name, value, options, events, re
editor?.current.setOption('foldGutter', pref.code_folding);
}
editor?.current.setOption('indentWithTabs', pref.indent_with_tabs);
editor?.current.setOption('indentWithTabs', !pref.use_spaces);
editor?.current.setOption('indentUnit', pref.tab_size);
editor?.current.setOption('tabSize', pref.tab_size);
editor?.current.setOption('lineWrapping', pref.wrap_code);