fix(task): don't reload the kanban board when opening a task
This commit is contained in:
parent
7a9aa7771b
commit
86eff7d49e
@ -536,11 +536,13 @@ const taskColor = ref<ITask['hexColor']>('')
|
|||||||
const visible = ref(false)
|
const visible = ref(false)
|
||||||
|
|
||||||
const project = computed(() => projectStore.projects[task.value.projectId])
|
const project = computed(() => projectStore.projects[task.value.projectId])
|
||||||
watchEffect(() => {
|
watch(
|
||||||
|
() => task.value?.projectId,
|
||||||
|
() => {
|
||||||
if (typeof project.value === 'undefined') {
|
if (typeof project.value === 'undefined') {
|
||||||
// assuming the task has not been loaded completely and thus the project id is 0.
|
// assuming the task has not been loaded completely and thus the project id is 0.
|
||||||
// This avoids flickering between a project background and none when opening the task detail view from
|
// This avoids flickering between a project background and none when opening the
|
||||||
// any the project views.
|
// task detail view from any of the project views.
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
baseStore.handleSetCurrentProject({
|
baseStore.handleSetCurrentProject({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user