X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b0aa1d72fe826648a65a9f32bff67833ebaa4793..a459a376f98f7cb8741c8ab1057c9578e59dc327:/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 b4951b8182..55829cb5d0 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, + SET_COLLECTION: (item) => ({ ...state, item }), LOAD_COLLECTION_SUCCESS: ({ item }) => ({ ...state, item }), });