Browse Source

Update index.tsx

Neeraj Gupta 1 year ago
parent
commit
31c706eff9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      apps/photos/src/pages/gallery/index.tsx

+ 1 - 0
apps/photos/src/pages/gallery/index.tsx

@@ -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();