Skip to content

Commit 2356857

Browse files
authored
Merge pull request #3799 from liam-hq/ux/migrations-viewer-readonly
🔒 Make MigrationsViewer SQL editor read-only
2 parents 0722644 + 32a662b commit 2356857

File tree

1 file changed

+1
-0
lines changed
  • frontend/apps/app/components/SessionDetailPage/components/Output/components/SQL/MigrationsViewer/useMigrationsViewer

1 file changed

+1
-0
lines changed

frontend/apps/app/components/SessionDetailPage/components/Output/components/SQL/MigrationsViewer/useMigrationsViewer/useMigrationsViewer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const baseExtensions: Extension[] = [
3535
lintGutter(),
3636
syntaxHighlighting(sqlHighlightStyle),
3737
customTheme,
38+
EditorState.readOnly.of(true),
3839
]
3940

4041
type Props = {

0 commit comments

Comments
 (0)