Merge pull request #706 from ente-io/fix-collection-rename
Fix collection rename
This commit is contained in:
commit
d88b3e0c32
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue