This commit is contained in:
naman-bruno
2025-12-03 15:02:45 +05:30
parent 663b06d60f
commit 77d2fecfe6

View File

@@ -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;