fix: issue switching table after using a filter, fixes#691

This commit is contained in:
Fabio Di Stasio 2024-06-05 18:34:43 +02:00
parent b7dfd5cb8c
commit 4a1697d633
1 changed files with 19 additions and 0 deletions

View File

@ -441,6 +441,25 @@ const resizeScroller = () => {
const updateFilters = (clausoles: TableFilterClausole[]) => {
filters.value = clausoles;
results.value = [];
const permanentTabs = {
table: 'data',
view: 'data',
trigger: 'trigger-props',
triggerFunction: 'trigger-function-props',
function: 'function-props',
routine: 'routine-props',
procedure: 'routine-props',
scheduler: 'scheduler-props'
} as Record<string, string>;
newTab({
uid: props.connection.uid,
schema: props.schema,
elementName: props.table,
type: permanentTabs[props.elementType],
elementType: props.elementType
});
getTableData();
};