20382: works for admins Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii...
[arvados-workbench2.git] / src / store / collection-panel / collection-panel-reducer.ts
index 4207a3930410069a0871d5a4938d6df18a98fe1f..6afba66c4ca8854d8bcfbdd8cb24d2900cbdd0df 100644 (file)
@@ -3,22 +3,21 @@
 // SPDX-License-Identifier: AGPL-3.0
 
 import { collectionPanelActions, CollectionPanelAction } from "./collection-panel-action";
-import { CollectionResource } from "~/models/collection";
+import { CollectionResource } from "models/collection";
 
 export interface CollectionPanelState {
     item: CollectionResource | null;
-    numberOfCollectionsWithSamePDH: number;
 }
 
 const initialState = {
     item: null,
-    numberOfCollectionsWithSamePDH: 0
 };
 
 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 }),
+        SET_COLLECTION: (item) => ({
+             ...state,
+             item,
+        }),
     });