Skip to content

Commit

Permalink
fix: conflict resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
CurryYangxx committed Jan 7, 2025
1 parent 89795a8 commit b66e5bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/insomnia/src/ui/context/app/insomnia-tab-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export const InsomniaTabProvider: FC<PropsWithChildren> = ({ children }) => {
tabList: [],
activeTabId: '',
});
uiEventBus.emit(UIEventType.CLOSE_TAB, 'all');
uiEventBus.emit(UIEventType.CLOSE_TAB, organizationId, 'all');
return;
}

Expand All @@ -149,7 +149,7 @@ export const InsomniaTabProvider: FC<PropsWithChildren> = ({ children }) => {
tabList: newTabList,
activeTabId: deleteIds.includes(currentTabs.activeTabId || '') ? newTabList[Math.max(index - 1, 0)]?.id : currentTabs.activeTabId as string,
});
uiEventBus.emit(UIEventType.CLOSE_TAB, deleteIds);
uiEventBus.emit(UIEventType.CLOSE_TAB, organizationId, deleteIds);
}, [navigate, organizationId, projectId, updateInsomniaTabs]);

const closeAllTabsUnderWorkspace = useCallback((workspaceId: string) => {
Expand Down

0 comments on commit b66e5bf

Please sign in to comment.