summaryrefslogtreecommitdiff
path: root/app/client/live/reducer.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-21 15:29:36 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-21 15:29:36 +0200
commitceb342df85308e45729067d4b56aa5b2fbaabc49 (patch)
treedad476e19c2a9513a93a999081e5f5013f18a921 /app/client/live/reducer.js
parentf694d542efa0cc5a819298f64b84d12e5af87527 (diff)
cmdz
Diffstat (limited to 'app/client/live/reducer.js')
-rw-r--r--app/client/live/reducer.js14
1 files changed, 4 insertions, 10 deletions
diff --git a/app/client/live/reducer.js b/app/client/live/reducer.js
index 3771ff0..4c5dba7 100644
--- a/app/client/live/reducer.js
+++ b/app/client/live/reducer.js
@@ -5,7 +5,7 @@ const liveInitialState = {
error: null,
opt: {},
checkpoints: [],
- videos: [],
+ datasets: [],
}
const liveReducer = (state = liveInitialState, action) => {
@@ -35,19 +35,13 @@ const liveReducer = (state = liveInitialState, action) => {
case 'LIST_CHECKPOINTS':
return {
...state,
- checkpoints: {
- ...state.opt,
- [action.key]: action.value,
- }
+ checkpoints: action.checkpoints,
}
- case 'LIST_VIDEOS':
+ case 'LIST_DATASETS':
return {
...state,
- videos: {
- ...state.opt,
- [action.key]: action.value,
- }
+ datasets: action.datasets,
}
default: