diff --git a/frontend/scenes/Document/components/Menu.js b/frontend/scenes/Document/components/Menu.js index 9d3cf958..ae315d82 100644 --- a/frontend/scenes/Document/components/Menu.js +++ b/frontend/scenes/Document/components/Menu.js @@ -28,7 +28,7 @@ type Props = { this.props.history.push(`${this.props.document.url}/new`); }; - onDelete = () => { + onDelete = async () => { let msg; if (get(this.props, 'document.collection.type') === 'atlas') { msg = @@ -38,7 +38,7 @@ type Props = { } if (confirm(msg)) { - this.props.document.delete(); + await this.props.document.delete(); this.props.history.push(this.props.document.collection.url); } };