Update index.tsx

This commit is contained in:
Neeraj Gupta 2024-01-22 16:17:19 +05:30 committed by GitHub
parent c04794f26e
commit 31c706eff9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -842,6 +842,7 @@ export default function Gallery() {
ops === COLLECTION_OPS_TYPE.RESTORE ||
ops === COLLECTION_OPS_TYPE.MOVE
) {
// redirect to all section when no items are left in the current collection.
setActiveCollectionID(ALL_SECTION);
} else if (ops === COLLECTION_OPS_TYPE.UNHIDE) {
exitHiddenSection();