mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 07:09:07 +03:00
fix sqleditor
This commit is contained in:
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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user