Merge branch 'gallery-refactor' into hidden-support

This commit is contained in:
Abhinav 2023-05-17 16:35:31 +05:30
commit 93baf53951

View file

@ -50,8 +50,8 @@ interface Iprops {
exif: any;
scheduleUpdate: () => void;
refreshPhotoswipe: () => void;
fileToCollectionsMap: Map<number, number[]>;
collectionNameMap: Map<number, string>;
fileToCollectionsMap?: Map<number, number[]>;
collectionNameMap?: Map<number, string>;
isTrashCollection: boolean;
}
@ -259,7 +259,7 @@ export function FileInfo({
justifyContent={'flex-start'}
alignItems={'flex-start'}>
{fileToCollectionsMap
.get(file.id)
?.get(file.id)
?.filter((collectionID) =>
collectionNameMap.has(collectionID)
)