diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-03 16:39:41 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-03 16:39:41 +0200 |
| commit | 167c45fdf39c7566906a562522981b7335284ad2 (patch) | |
| tree | eb86cae865147354f678aa9b8b88b61b6d68f56d /public/bundle.js | |
| parent | 1809865b4f5ad58058af8ec23a8d07cb5597d7b2 (diff) | |
neeeeeeeed to append files to this ridiculous data structure now
Diffstat (limited to 'public/bundle.js')
| -rw-r--r-- | public/bundle.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/public/bundle.js b/public/bundle.js index b174c07..28c34c6 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -5552,6 +5552,8 @@ var _types2 = _interopRequireDefault(_types); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } + var samplernnInitialState = { loading: true, error: null, @@ -5597,10 +5599,17 @@ var samplernnReducer = function samplernnReducer() { case _types2.default.file.create: if (state.folder.id === action.data.folder_id) { + console.log(action.data, state.folder); return _extends({}, state, { loading: false, folder: _extends({}, state.folder, { - input: [action.data].concat(state.folder.input) + datasets: [].concat(_toConsumableArray(state.folder.datasets), [{ + name: action.data.name, + date: action.data.date, + input: [action.data].concat(state.folder.input), + output: [], + checkpoints: [] + }]) }) }); } |
