X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b0aa1d72fe826648a65a9f32bff67833ebaa4793..68bcb877244747d3895212bd5b6d8fb228519ce9:/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 5e991619e7..265b5cf831 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 : '';