projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '15020-collection-with-the-same-content-adress'
[arvados-workbench2.git]
/
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 0dd233eaf0c4c444d4f7fc50f8eb218e3aa50d16..f09b019873e98e09b082a638a3f12a5b0eea93b2 100644
(file)
--- a/
src/store/collection-panel/collection-panel-reducer.ts
+++ b/
src/store/collection-panel/collection-panel-reducer.ts
@@
-3,7
+3,7
@@
// SPDX-License-Identifier: AGPL-3.0
import { collectionPanelActions, CollectionPanelAction } from "./collection-panel-action";
// 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;
export interface CollectionPanelState {
item: CollectionResource | null;
@@
-16,6
+16,6
@@
const initialState = {
export const collectionPanelReducer = (state: CollectionPanelState = initialState, action: CollectionPanelAction) =>
collectionPanelActions.match(action, {
default: () => state,
export const collectionPanelReducer = (state: CollectionPanelState = initialState, action: CollectionPanelAction) =>
collectionPanelActions.match(action, {
default: () => state,
-
LOAD_COLLECTION: () => state
,
- LOAD_COLLECTION_SUCCESS: ({ item }) => ({ ...state, item })
,
+
SET_COLLECTION: (item) => ({ ...state, item })
,
+ LOAD_COLLECTION_SUCCESS: ({ item }) => ({ ...state, item })
});
});