diff --git a/apps/comments/src/components/Comment.vue b/apps/comments/src/components/Comment.vue index 441fec1026c48..29711ad687db0 100644 --- a/apps/comments/src/components/Comment.vue +++ b/apps/comments/src/components/Comment.vue @@ -230,8 +230,6 @@ export default { }, isLimbo() { - console.log('checking for limbo', this.id) - return this.deletedCommentLimboStore.checkForId(this.id) }, }, diff --git a/apps/comments/src/mixins/CommentMixin.js b/apps/comments/src/mixins/CommentMixin.js index a2b53aeef7ebd..caea972c14c66 100644 --- a/apps/comments/src/mixins/CommentMixin.js +++ b/apps/comments/src/mixins/CommentMixin.js @@ -70,8 +70,6 @@ export default { // DELETION onDeleteWithUndo() { - console.log('DELETE WITH UNDO') - this.$emit('delete') this.deleted = true this.deletedCommentLimboStore.addId(this.id) const timeOutDelete = setTimeout(this.onDelete, TOAST_UNDO_TIMEOUT) diff --git a/apps/comments/src/store/deletedCommentLimbo.js b/apps/comments/src/store/deletedCommentLimbo.js index 6a8079f550508..c51ba03a891ca 100644 --- a/apps/comments/src/store/deletedCommentLimbo.js +++ b/apps/comments/src/store/deletedCommentLimbo.js @@ -12,12 +12,10 @@ export const useDeletedCommentLimbo = defineStore('deletedCommentLimbo', { }), actions: { addId(id) { - console.log('ADDING ID TO LIMBO', id, this.idsInLimbo) this.idsInLimbo.push(id) }, removeId(id) { - console.log('REMOVING ID FROM LIMBO', id, this.idsInLimbo) const index = this.idsInLimbo.indexOf(id) if (index > -1) { this.idsInLimbo.splice(index, 1) @@ -25,7 +23,7 @@ export const useDeletedCommentLimbo = defineStore('deletedCommentLimbo', { }, checkForId(id) { - this.idsInLimbo.includes(id) + return this.idsInLimbo.includes(id) } }, })