mirror of
https://github.com/t8y2/dbx.git
synced 2026-11-02 08:30:35 +00:00
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:
@@ -251,6 +251,7 @@ export interface QueryTab {
|
||||
selectStar: boolean;
|
||||
columns: string[];
|
||||
};
|
||||
whereInput?: string;
|
||||
}
|
||||
|
||||
export interface SavedSqlFolder {
|
||||
|
||||
Reference in New Issue
Block a user