18787: Removes remaining traces of old big collection loading check.
[arvados-workbench2.git] / src / store / collection-panel / collection-panel-reducer.ts
index f09b019873e98e09b082a638a3f12a5b0eea93b2..b9713f5d398011a13a82b5001e138f8fb99c65ae 100644 (file)
@@ -3,19 +3,22 @@
 // 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;
 }
 
 const initialState = {
-    item: null
+    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_COLLECTION: (item) => ({
+             ...state,
+             item,
+        }),
+        LOAD_COLLECTION_SUCCESS: ({ item }) => ({ ...state, item }),
     });