diff --git a/frontend/src/components/tasks/partials/Comments.vue b/frontend/src/components/tasks/partials/Comments.vue index 8a2d5f419..c94c8e5fa 100644 --- a/frontend/src/components/tasks/partials/Comments.vue +++ b/frontend/src/components/tasks/partials/Comments.vue @@ -321,6 +321,8 @@ async function loadComments(taskId: ITask['id']) { return } + console.log('load comments', props.initialComments) + commentEdit.taskId = taskId commentToDelete.taskId = taskId @@ -339,7 +341,7 @@ async function changePage(page: number) { } watch( - () => props.taskId, + () => [props.taskId, props.initialComments], () => { currentPage.value = 1 // Reset to first page when task changes loadComments(props.taskId)