Browse Source

fix(gui-v2): on delete remove tab from state

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3005/head
Pranav C 2 years ago
parent
commit
bc1de4be2d
  1. 4
      packages/nc-gui-v2/composables/useTabs.ts

4
packages/nc-gui-v2/composables/useTabs.ts

@ -18,8 +18,8 @@ export interface TabItem {
function getPredicate(key: Partial<TabItem>) {
return (tab: TabItem) =>
(!('id' in key) || tab.id === key.id) &&
(!('title' in key) || tab.title === key.id) &&
(!('type' in key) || tab.type === key.id)
(!('title' in key) || tab.title === key.title) &&
(!('type' in key) || tab.type === key.type)
}
export function useTabs() {

Loading…
Cancel
Save