Skip to content

Commit

Permalink
Fix editor formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gschier committed Jan 27, 2025
1 parent 229d9c1 commit 93bd437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-web/components/core/Editor/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 93bd437

Please sign in to comment.