From ea2817244b937b3cc9ac3ecba960fd322ffaf801 Mon Sep 17 00:00:00 2001 From: isUnknown Date: Tue, 7 Jan 2025 14:35:50 +0100 Subject: [PATCH] comment --- src/components/comments/Comment.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;