Browse Source

Merge pull request #706 from ente-io/fix-collection-rename

Fix collection rename
Abhinav Kumar 2 năm trước cách đây
mục cha
commit
d88b3e0c32
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/components/Collections/CollectionOptions/index.tsx

+ 2 - 2
src/components/Collections/CollectionOptions/index.tsx

@@ -119,9 +119,9 @@ const CollectionOptions = (props: CollectionOptionsProps) => {
         };
     };
 
-    const renameCollection = (newName: string) => {
+    const renameCollection = async (newName: string) => {
         if (activeCollection.name !== newName) {
-            CollectionAPI.renameCollection(activeCollection, newName);
+            await CollectionAPI.renameCollection(activeCollection, newName);
         }
     };