aboutsummaryrefslogtreecommitdiff
path: root/modern/src/RemoveDialog.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-09-20 23:03:05 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-09-20 23:03:05 -0700
commit9238895c99c30c442ce8dae41b61f898a79dd89b (patch)
tree9488fa21fbcf6a78eefcf015ed73cd44e7415b97 /modern/src/RemoveDialog.js
parent37dd8129f8e07d00eb93262210bf1ecd4ce95532 (diff)
downloadtrackermap-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.js2
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);
}