From 1df8fc18c7721f32d64ee0a47661e01db82e118c Mon Sep 17 00:00:00 2001 From: Curry Yang <1019yanglu@gmail.com> Date: Mon, 6 Jan 2025 14:26:13 +0800 Subject: [PATCH] fix: conflict resolve --- packages/insomnia/src/ui/context/app/insomnia-tab-context.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/insomnia/src/ui/context/app/insomnia-tab-context.tsx b/packages/insomnia/src/ui/context/app/insomnia-tab-context.tsx index 7927b2dd7d8..68b634407f7 100644 --- a/packages/insomnia/src/ui/context/app/insomnia-tab-context.tsx +++ b/packages/insomnia/src/ui/context/app/insomnia-tab-context.tsx @@ -133,7 +133,7 @@ export const InsomniaTabProvider: FC = ({ children }) => { tabList: [], activeTabId: '', }); - uiEventBus.emit(UIEventType.CLOSE_TAB, 'all'); + uiEventBus.emit(UIEventType.CLOSE_TAB, organizationId, 'all'); return; } @@ -149,7 +149,7 @@ export const InsomniaTabProvider: FC = ({ 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) => {