mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
Fix
This commit is contained in:
parent
04ede4326a
commit
a0f103be9b
@ -86,15 +86,19 @@ export const handleSelectCreatorMulti =
|
||||
|
||||
if (checked) {
|
||||
for (const file of files) {
|
||||
newSelected[file.id] = true;
|
||||
newCount++;
|
||||
if (file.ownerID === userID) newOwnCount++;
|
||||
if (!newSelected[file.id]) {
|
||||
newSelected[file.id] = true;
|
||||
newCount++;
|
||||
if (file.ownerID === userID) newOwnCount++;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (const file of files) {
|
||||
newSelected[file.id] = false;
|
||||
newCount--;
|
||||
if (file.ownerID === userID) newOwnCount--;
|
||||
if (newSelected[file.id]) {
|
||||
newSelected[file.id] = false;
|
||||
newCount--;
|
||||
if (file.ownerID === userID) newOwnCount--;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user