]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/page-comments.js
Fixed failing references after controller/file reshuffle
[bookstack] / resources / js / components / page-comments.js
index 314ddf3e1e403a192b0ad54235eeb84ff9c85fb6..0ac9d05720de80cdf9ec1b71e31d4ed02c77d1e0 100644 (file)
@@ -100,7 +100,7 @@ export class PageComments extends Component {
     deleteComment(commentElem) {
         const id = commentElem.getAttribute('comment');
         this.showLoading(commentElem.querySelector('[comment-content]'));
-        window.$http.delete(`/comment/${id}`).then(resp => {
+        window.$http.delete(`/comment/${id}`).then(() => {
             commentElem.parentNode.removeChild(commentElem);
             window.$events.success(this.deletedText);
             this.updateCount();