mirror of
https://github.com/supabase/supabase.git
synced 2026-10-19 16:19:10 +03:00
fix: sql editor folder name editing (#28913)
* fix: sql editor folder name editing * remove console.log
This commit is contained in:
1 parent
2ed16a690c
commit
7978d8510d
1 file changed
+6
+6
@@ -125,6 +125,12 @@ export const SQLEditorTreeViewItem = ({
|
||||
router.push(`/project/${ref}/sql/${element.id}`)
|
||||
}
|
||||
} else {
|
||||
// Prevent expanding folder while editing text
|
||||
// as the user may double click to select etc
|
||||
if (isEditing) {
|
||||
return
|
||||
}
|
||||
|
||||
onClick(e)
|
||||
if (!isExpanded) onOpenFolder(element.id)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user