mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-15 21:22:18 +01:00
Fix editor formatting
This commit is contained in:
1 parent
229d9c1bd6
commit
93bd437e71
1 file changed
+1
-1
@@ -148,7 +148,7 @@ export const Editor = forwardRef<EditorView | undefined, EditorProps>(function E
|
||||
disableTabIndent = true;
|
||||
}
|
||||
|
||||
if (format == null) {
|
||||
if (format == null && !readOnly) {
|
||||
format =
|
||||
language === 'json'
|
||||
? tryFormatJson
|
||||
|
||||
Reference in new issue
Block a user