fix sqleditor

This commit is contained in:
Saxon Fletcher committed 2024-12-23 15:03:37 +10:00
1 parent 136007dfcb
commit dd14fe0a70
1 file changed
+1 -1
@@ -267,7 +267,7 @@ export const SQLEditor = () => {
const selection = editor.getSelection()
const selectedValue = selection ? editor.getModel()?.getValueInRange(selection) : undefined
const sql = snippet
let sql = snippet
? (selectedValue || editorRef.current?.getValue()) ?? snippet.snippet.content?.sql
: selectedValue || editorRef.current?.getValue()