diff --git a/src/components/Collections/CollectionOptions/index.tsx b/src/components/Collections/CollectionOptions/index.tsx index e89bc5eadf74756650d296a618d904c7335268a2..cfaa96ce114ca9eb38b34ee0a03899a89c9e7402 100644 --- a/src/components/Collections/CollectionOptions/index.tsx +++ b/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); } };