fix(grid): persist WHERE filter input across tab switches (closes #210)

whereFilterInput was a component-local ref that got lost when switching
tabs because DataGrid is destroyed and recreated via :key binding.

Store whereInput in the QueryTab state and pass it as initialWhereInput
prop so it survives tab switches.
This commit is contained in:
t8y2
2026-05-11 12:24:08 +08:00
parent cb70625bd8
commit 8032c63727
4 changed files with 7 additions and 1 deletions
+1
View File
@@ -251,6 +251,7 @@ export interface QueryTab {
selectStar: boolean;
columns: string[];
};
whereInput?: string;
}
export interface SavedSqlFolder {