owner-names-and-updated-navigating-on-data-explorer-name
[arvados-workbench2.git] / src / store / collection-panel / collection-panel-reducer.ts
index b4951b81826b14426b72e813eda7e93d14c2f8f6..f09b019873e98e09b082a638a3f12a5b0eea93b2 100644 (file)
@@ -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 })
     });