mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-22 04:05:42 +00:00
fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user