Skip to content

armgit / ente

Public Imported from GitHub
0

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

[web] Fix a warning about MUI component switch state on using the select all checkbox

Manav Rathi8c9a11fc62dd
diff --git a/web/apps/photos/src/components/PhotoList/index.tsx b/web/apps/photos/src/components/PhotoList/index.tsx
index 6a752ceb67..c63297396e 100644
--- a/web/apps/photos/src/components/PhotoList/index.tsx
+++ b/web/apps/photos/src/components/PhotoList/index.tsx
@@ -786,7 +786,7 @@ export function PhotoList({
<Checkbox
key={item.date}
name={item.date}
- checked={checkedDates[item.date]}
+ checked={!!checkedDates[item.date]}
onChange={() =>
onChangeSelectAllCheckBox(item.date)
}
@@ -804,7 +804,7 @@ export function PhotoList({
<Checkbox
key={listItem.date}
name={listItem.date}
- checked={checkedDates[listItem.date]}
+ checked={!!checkedDates[listItem.date]}
onChange={() =>
onChangeSelectAllCheckBox(listItem.date)
}