delete reply working

This commit is contained in:
isUnknown 2025-01-07 15:58:52 +01:00
parent 6cc8325d2b
commit dd6eff2904
4 changed files with 6 additions and 6 deletions

View file

@ -141,7 +141,7 @@ async function deleteComment(event) {
// 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) {
if (activeTracks.value?.length > 0) {
activeTracks.value[0].files = activeTracks.value[0].files.map((file) => {
if (file.uuid !== newFile.uuid) return file;
return newFile;

View file

@ -308,7 +308,7 @@ function openComment(comment) {
openedComment.value = comment;
if (activeTracks?.value.length === 1) {
if (activeTracks.value?.length === 1) {
openedFile.value = activeTracks.value[0].files.find(
(file) => file.uuid === openedComment.value.location.file.uuid
);