From ceb342df85308e45729067d4b56aa5b2fbaabc49 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 21 May 2018 15:29:36 +0200 Subject: cmdz --- app/client/live/reducer.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'app/client/live/reducer.js') 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: -- cgit v1.2.3-70-g09d2