This commit is contained in:
isUnknown 2025-01-07 14:35:50 +01:00
parent ebd464460c
commit ea2817244b

View file

@ -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;