fix(task): set project after loading task details

Resolves https://github.com/go-vikunja/vikunja/issues/1342
This commit is contained in:
kolaente 2025-08-31 19:40:46 +02:00
parent 1047e62978
commit 7ef7163bfe
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
1 changed files with 4 additions and 0 deletions

View File

@ -743,6 +743,10 @@ watch(
attachmentStore.set(task.value.attachments)
taskColor.value = task.value.hexColor
setActiveFields()
if (project.value) {
await baseStore.handleSetCurrentProject({project: project.value})
}
} catch (e) {
if (e?.response?.status === 404) {
router.replace({name: 'not-found'})