[ARVADOS-WORKBENCH2] updated: 1.3.0-120-g413bef8
Git user
git at public.curoverse.com
Thu Dec 13 10:10:19 EST 2018
Summary of changes:
src/store/dialog/dialog-reducer.ts | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
via 413bef83277b0623b319f0c651448b0eaf39048a (commit)
from 936aa32e065b7f672e27b95262720c2ce8258bf6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 413bef83277b0623b319f0c651448b0eaf39048a
Author: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
Date: Thu Dec 13 16:10:09 2018 +0100
deleted-unnecessary-code
Feature #14489
Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
diff --git a/src/store/dialog/dialog-reducer.ts b/src/store/dialog/dialog-reducer.ts
index 775a4d5..3036868 100644
--- a/src/store/dialog/dialog-reducer.ts
+++ b/src/store/dialog/dialog-reducer.ts
@@ -11,9 +11,7 @@ export interface Dialog<T> {
data: T;
}
-const initialState: DialogState = {};
-
-export const dialogReducer = (state: DialogState = initialState, action: DialogAction) =>
+export const dialogReducer = (state: DialogState = {}, action: DialogAction) =>
dialogActions.match(action, {
OPEN_DIALOG: ({ id, data }) => ({ ...state, [id]: { open: true, data } }),
@@ -21,7 +19,7 @@ export const dialogReducer = (state: DialogState = initialState, action: DialogA
...state,
[id]: state[id] ? { ...state[id], open: false } : { open: false, data: {} }
}),
- CLOSE_ALL_DIALOGS: () => ({ ...initialState }),
+ CLOSE_ALL_DIALOGS: () => ({ }),
default: () => state,
});
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list