fix(task): update task comment when switching between related tasks

This commit is contained in:
kolaente 2025-09-04 17:06:34 +02:00
parent 6892e8e447
commit bb07b33dc2
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 1 deletions

View File

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