-const addCollection = (data: { name: string, description: string, files: File[] }) =>
- (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
- return dispatch<any>(createCollection(data)).then((collection: CollectionResource) => {
+const addCollection = (data: { name: string, description: string }, files: File[]) =>
+ (dispatch: Dispatch) => {
+ return dispatch<any>(createCollection(data, files)).then(() => {