mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-11 21:11:48 +01:00
Fix editor formatting
This commit is contained in:
@@ -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