Add multiple files uploading
[arvados-workbench2.git] / src / store / collections / creator / collection-creator-action.ts
index b06cf0f5970346ffe22d74cf0f3454f20c20fe3a..3afe0e92a81b66b6c51920c6ce4be43a6c3ecc83 100644 (file)
@@ -26,7 +26,10 @@ export const createCollection = (collection: Partial<CollectionResource>) =>
         dispatch(collectionCreateActions.CREATE_COLLECTION(collectiontData));
         return services.collectionService
             .create(collectiontData)
-            .then(collection => dispatch(collectionCreateActions.CREATE_COLLECTION_SUCCESS(collection)));
+            .then(collection => {
+                dispatch(collectionCreateActions.CREATE_COLLECTION_SUCCESS(collection));
+                return collection;
+            });
     };
 
 export type CollectionCreateAction = UnionOf<typeof collectionCreateActions>;