changed how we check isUncategorizedCollection prop in SelectedFileOptions of gallery
This commit is contained in:
parent
7329e60654
commit
d9acaef3b8
|
@ -60,6 +60,7 @@ import Uploader from 'components/Upload/Uploader';
|
||||||
import {
|
import {
|
||||||
ALL_SECTION,
|
ALL_SECTION,
|
||||||
ARCHIVE_SECTION,
|
ARCHIVE_SECTION,
|
||||||
|
CollectionSummaryType,
|
||||||
CollectionType,
|
CollectionType,
|
||||||
DUMMY_UNCATEGORIZED_SECTION,
|
DUMMY_UNCATEGORIZED_SECTION,
|
||||||
TRASH_SECTION,
|
TRASH_SECTION,
|
||||||
|
@ -74,7 +75,6 @@ import {
|
||||||
handleCollectionOps,
|
handleCollectionOps,
|
||||||
getSelectedCollection,
|
getSelectedCollection,
|
||||||
isFavoriteCollection,
|
isFavoriteCollection,
|
||||||
isUncategorizedCollection,
|
|
||||||
getArchivedCollections,
|
getArchivedCollections,
|
||||||
hasNonSystemCollections,
|
hasNonSystemCollections,
|
||||||
} from 'utils/collection';
|
} from 'utils/collection';
|
||||||
|
@ -782,10 +782,10 @@ export default function Gallery() {
|
||||||
activeCollection,
|
activeCollection,
|
||||||
collections
|
collections
|
||||||
)}
|
)}
|
||||||
isUncategorizedCollection={isUncategorizedCollection(
|
isUncategorizedCollection={
|
||||||
activeCollection,
|
collectionSummaries[activeCollection] ===
|
||||||
collections
|
CollectionSummaryType.uncategorized
|
||||||
)}
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</FullScreenDropZone>
|
</FullScreenDropZone>
|
||||||
|
|
Loading…
Reference in a new issue