Skip to content

Commit

Permalink
fix: issue switching table after using a filter, fixes#691
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Jun 5, 2024
1 parent b7dfd5c commit 4a1697d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/renderer/components/WorkspaceTabTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Expand Down

0 comments on commit 4a1697d

Please sign in to comment.