diff --git a/src/components/comments/Comment.vue b/src/components/comments/Comment.vue index 2255f54..555c075 100644 --- a/src/components/comments/Comment.vue +++ b/src/components/comments/Comment.vue @@ -116,7 +116,10 @@ async function read() { async function deleteComment(event) { event.stopPropagation(); const newFile = await api.deleteComment(comment); - console.log(newFile); + + // If there is an active track, + // it's not the opened file that should be updated + // but the corresponding file in the active track if (activeTracks.value.length > 0) { activeTracks.value[0].files = activeTracks.value[0].files.map((file) => { if (file.uuid !== newFile.uuid) return file;