16439: Sends the user to the newly created project/collection.
[arvados-workbench2.git] / src / store / collection-panel / collection-panel-reducer.ts
index 4207a3930410069a0871d5a4938d6df18a98fe1f..f09b019873e98e09b082a638a3f12a5b0eea93b2 100644 (file)
@@ -7,18 +7,15 @@ import { CollectionResource } from "~/models/collection";
 
 export interface CollectionPanelState {
     item: CollectionResource | null;
-    numberOfCollectionsWithSamePDH: number;
 }
 
 const initialState = {
-    item: null,
-    numberOfCollectionsWithSamePDH: 0
+    item: null
 };
 
 export const collectionPanelReducer = (state: CollectionPanelState = initialState, action: CollectionPanelAction) =>
     collectionPanelActions.match(action, {
         default: () => state,
         SET_COLLECTION: (item) => ({ ...state, item }),
-        LOAD_COLLECTION_SUCCESS: ({ item }) => ({ ...state, item }),
-        SET_NUMBER_OF_COLLECTIONS_WITH_SAME_PDH: (num) => ({ ...state, numberOfCollectionsWithSamePDH: num }),
+        LOAD_COLLECTION_SUCCESS: ({ item }) => ({ ...state, item })
     });