From 41d9bbd2d8cf94dd3a08dc2964fb8176d1ad22ba Mon Sep 17 00:00:00 2001 From: Anusree Subash Date: Sat, 22 Oct 2022 16:03:26 +0530 Subject: [PATCH] fix: fixed issue renaming workspaces and creating collections --- .../Sidebar/Collections/CreateOrAddCollection/index.js | 2 +- .../src/components/Workspaces/WorkspaceSelector/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/bruno-app/src/components/Sidebar/Collections/CreateOrAddCollection/index.js b/packages/bruno-app/src/components/Sidebar/Collections/CreateOrAddCollection/index.js index ad0bbf7fb..edd7ce799 100644 --- a/packages/bruno-app/src/components/Sidebar/Collections/CreateOrAddCollection/index.js +++ b/packages/bruno-app/src/components/Sidebar/Collections/CreateOrAddCollection/index.js @@ -43,7 +43,7 @@ const CreateOrAddCollection = () => { return (
- {createCollectionModalOpen ? setCreateCollectionModalOpen(false)} handleConfirm={handleCreateCollection} /> : null} + {createCollectionModalOpen ? setCreateCollectionModalOpen(false)} handleConfirm={handleCreateCollection} /> : null} {addCollectionToWSModalOpen ? ( setAddCollectionToWSModalOpen(false)} onSelect={handleAddCollectionToWorkspace} /> diff --git a/packages/bruno-app/src/components/Workspaces/WorkspaceSelector/index.js b/packages/bruno-app/src/components/Workspaces/WorkspaceSelector/index.js index 12c5a7a6c..287130905 100644 --- a/packages/bruno-app/src/components/Workspaces/WorkspaceSelector/index.js +++ b/packages/bruno-app/src/components/Workspaces/WorkspaceSelector/index.js @@ -18,7 +18,7 @@ const WorkspaceSelector = () => { useEffect(() => { setActiveWorkspace(workspaces.find((workspace) => workspace.uid === activeWorkspaceUid)); - }, [activeWorkspaceUid]); + }, [activeWorkspaceUid, workspaces]); const Icon = forwardRef((props, ref) => { return (