diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-09-20 23:03:05 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-09-20 23:03:05 -0700 |
commit | 9238895c99c30c442ce8dae41b61f898a79dd89b (patch) | |
tree | 9488fa21fbcf6a78eefcf015ed73cd44e7415b97 /modern/src/RemoveDialog.js | |
parent | 37dd8129f8e07d00eb93262210bf1ecd4ce95532 (diff) | |
download | trackermap-web-9238895c99c30c442ce8dae41b61f898a79dd89b.tar.gz trackermap-web-9238895c99c30c442ce8dae41b61f898a79dd89b.tar.bz2 trackermap-web-9238895c99c30c442ce8dae41b61f898a79dd89b.zip |
Handle list refresh
Diffstat (limited to 'modern/src/RemoveDialog.js')
-rw-r--r-- | modern/src/RemoveDialog.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/RemoveDialog.js b/modern/src/RemoveDialog.js index 57be7871..a8107357 100644 --- a/modern/src/RemoveDialog.js +++ b/modern/src/RemoveDialog.js @@ -8,7 +8,7 @@ import DialogContentText from '@material-ui/core/DialogContentText'; const RemoveDialog = ({ open, endpoint, itemId, onResult }) => { const handleRemove = async () => { - const response = fetch(`/api/${endpoint}/${itemId}`, { method: 'DELETE' }) + const response = await fetch(`/api/${endpoint}/${itemId}`, { method: 'DELETE' }) if (response.ok) { onResult(true); } |