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

Fix collection rename
This commit is contained in:
Abhinav Kumar 2022-09-13 18:40:40 +05:30 committed by GitHub
commit d88b3e0c32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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