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;