We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c4c97a commit 0822ce8Copy full SHA for 0822ce8
packages/compass-workspaces/src/stores/workspaces.ts
@@ -887,10 +887,11 @@ export const closeTab = (
887
atIndex: number
888
): WorkspacesThunkAction<Promise<void>, CloseTabsAction> => {
889
return async (dispatch, getState) => {
890
- const tab = getState().tabs[atIndex];
+ const { tabs } = getState();
891
+ const tab = tabs[atIndex];
892
if (canCloseTab(tab) || (await confirmClosingTab())) {
893
dispatch({ type: WorkspacesActions.CloseTabs, tabIds: [tab.id] });
- cleanupLocalAppRegistryForTab(tab?.id);
894
+ cleanupRemovedTabs(tabs, getState().tabs);
895
}
896
};
897
0 commit comments