X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/e7ba429b7bec690811df51893817968c177853be..a14e75ef7270c29001e8ca462b35bf58588674ed:/src/store/collection-panel/collection-panel-reducer.ts diff --git a/src/store/collection-panel/collection-panel-reducer.ts b/src/store/collection-panel/collection-panel-reducer.ts index b4951b81..f09b0198 100644 --- a/src/store/collection-panel/collection-panel-reducer.ts +++ b/src/store/collection-panel/collection-panel-reducer.ts @@ -16,5 +16,6 @@ const initialState = { export const collectionPanelReducer = (state: CollectionPanelState = initialState, action: CollectionPanelAction) => collectionPanelActions.match(action, { default: () => state, - LOAD_COLLECTION_SUCCESS: ({ item }) => ({ ...state, item }), + SET_COLLECTION: (item) => ({ ...state, item }), + LOAD_COLLECTION_SUCCESS: ({ item }) => ({ ...state, item }) });