comment
This commit is contained in:
parent
ebd464460c
commit
ea2817244b
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue