mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-21 00:11:21 +02:00
Fix editor formatting
This commit is contained in:
@@ -148,7 +148,7 @@ export const Editor = forwardRef<EditorView | undefined, EditorProps>(function E
|
|||||||
disableTabIndent = true;
|
disableTabIndent = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (format == null) {
|
if (format == null && !readOnly) {
|
||||||
format =
|
format =
|
||||||
language === 'json'
|
language === 'json'
|
||||||
? tryFormatJson
|
? tryFormatJson
|
||||||
|
|||||||
Reference in New Issue
Block a user