From 0cde789697c6d72a3c7f8b81580f5afef74eb693 Mon Sep 17 00:00:00 2001
From: anusreesubash <65728079+anusreesubash@users.noreply.github.com>
Date: Sat, 22 Oct 2022 16:32:42 +0530
Subject: [PATCH] fix: fixed issue renaming workspaces and creating collections
(#40)
---
.../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 ad0bbf7f..edd7ce79 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 12c5a7a6..28713090 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 (