瀏覽代碼

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

Fix collection rename
Abhinav Kumar 2 年之前
父節點
當前提交
d88b3e0c32
共有 1 個文件被更改,包括 2 次插入2 次删除
  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) {
         if (activeCollection.name !== newName) {
-            CollectionAPI.renameCollection(activeCollection, newName);
+            await CollectionAPI.renameCollection(activeCollection, newName);
         }
         }
     };
     };