From 77d2fecfe651fd9119bdc765c2551c19292afc72 Mon Sep 17 00:00:00 2001 From: naman-bruno Date: Wed, 3 Dec 2025 15:02:45 +0530 Subject: [PATCH] fixes --- .../src/components/Sidebar/CreateCollection/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/bruno-app/src/components/Sidebar/CreateCollection/index.js b/packages/bruno-app/src/components/Sidebar/CreateCollection/index.js index 70cc274cb..baae6ad3a 100644 --- a/packages/bruno-app/src/components/Sidebar/CreateCollection/index.js +++ b/packages/bruno-app/src/components/Sidebar/CreateCollection/index.js @@ -36,9 +36,7 @@ const CreateCollection = ({ onClose, defaultLocation: propDefaultLocation }) => const hideLocationInput = activeWorkspace && activeWorkspace.type !== 'default' && !!activeWorkspace?.pathname; - const defaultLocation = propDefaultLocation - || (activeWorkspace?.pathname ? `${activeWorkspace.pathname}/collections` : '') - || get(preferences, 'general.defaultCollectionLocation', ''); + const defaultLocation = isDefaultWorkspace ? get(preferences, 'general.defaultCollectionLocation', '') : (activeWorkspace?.pathname ? `${activeWorkspace.pathname}/collections` : ''); const shouldShowAccordion = workspaceUid && hideLocationInput && !isDefaultWorkspace; const actuallyHideLocationInput = hideLocationInput && !showExternalLocation && !isDefaultWorkspace;