Bläddra i källkod

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

Fix collection rename
Abhinav Kumar 2 år sedan
förälder
incheckning
d88b3e0c32
1 ändrade filer med 2 tillägg och 2 borttagningar
  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);
         }
     };