From 593278cc4f023f455737187bf643fdeed16774b6 Mon Sep 17 00:00:00 2001 From: Aralhi Date: Fri, 12 Apr 2024 10:59:50 +0800 Subject: [PATCH] fix: editor always run the first sql. --- web/components/chat/db-editor.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web/components/chat/db-editor.tsx b/web/components/chat/db-editor.tsx index 943e210a2..bd53c9dec 100644 --- a/web/components/chat/db-editor.tsx +++ b/web/components/chat/db-editor.tsx @@ -575,6 +575,7 @@ function DbEditor() { )} onClick={() => { setCurrentTabIndex(index); + setNewEditorValue(editorValue?.[index]); }} > {item.title}