diff --git a/frontend/src/actions/dataset.js b/frontend/src/actions/dataset.js index f70de5d8a..d8e94557f 100644 --- a/frontend/src/actions/dataset.js +++ b/frontend/src/actions/dataset.js @@ -124,7 +124,7 @@ export function datasetDeleted(datasetId){ .then(json => { dispatch({ type: DELETE_DATASET, - dataset: json, + dataset: {"id": datasetId}, receivedAt: Date.now(), }); }) diff --git a/frontend/src/actions/file.js b/frontend/src/actions/file.js index 144c62448..41b59a1e2 100644 --- a/frontend/src/actions/file.js +++ b/frontend/src/actions/file.js @@ -104,7 +104,7 @@ export function fileDeleted(fileId){ .then(json => { dispatch({ type: DELETE_FILE, - file: {"id": json["id"]}, + file: {"id": fileId}, receivedAt: Date.now(), }); })