X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/2f0ac8c05c27a6cb41afe90d40a35a0195a8f885..c038a5258d5790773ccca89a192c8c2b7dcd86cb:/src/store/collection-panel/collection-panel-action.ts diff --git a/src/store/collection-panel/collection-panel-action.ts b/src/store/collection-panel/collection-panel-action.ts index 5e991619..265b5cf8 100644 --- a/src/store/collection-panel/collection-panel-action.ts +++ b/src/store/collection-panel/collection-panel-action.ts @@ -15,6 +15,7 @@ import { resourcesActions } from "~/store/resources/resources-actions"; import { unionize, ofType, UnionOf } from '~/common/unionize'; export const collectionPanelActions = unionize({ + SET_COLLECTION: ofType(), LOAD_COLLECTION: ofType<{ uuid: string }>(), LOAD_COLLECTION_SUCCESS: ofType<{ item: CollectionResource }>() }); @@ -34,7 +35,7 @@ export const loadCollectionPanel = (uuid: string) => return collection; }; -export const createCollectionTag = (data: TagProperty) => +export const createCollectionTag = (data: TagProperty) => async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => { const item = getState().collectionPanel.item; const uuid = item ? item.uuid : '';