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}