Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix(PickCoverPhotoDialog):prevent-multi-select

Aswin Asok70f915eb7d8b
diff --git a/web/apps/photos/src/components/FileList.tsx b/web/apps/photos/src/components/FileList.tsx
index 46f7520242..24da4e092f 100644
--- a/web/apps/photos/src/components/FileList.tsx
+++ b/web/apps/photos/src/components/FileList.tsx
@@ -794,7 +794,8 @@ export const FileList: React.FC<FileListProps> = ({
const renderListItem = useCallback(
(item: FileListItem, isScrolling: boolean) => {
- const haveSelection = !suppressSelectionUI && selected.count > 0;
+ const haveSelection =
+ !!enableSelect && !suppressSelectionUI && selected.count > 0;
const showGroupCheckbox =
haveSelection && !(contextMenu && selected.count === 1);
switch (item.type) {