fix(views): make sure view changes are reflected in switcher
This commit is contained in:
parent
637c8f6ba5
commit
5177f516c4
@ -88,7 +88,7 @@ const currentProject = computed<IProject>(() => {
|
||||
})
|
||||
useTitle(() => currentProject.value?.id ? getProjectTitle(currentProject.value) : '')
|
||||
|
||||
const views = computed(() => currentProject.value?.views || [])
|
||||
const views = computed(() => projectStore.projects[projectId]?.views)
|
||||
|
||||
// watchEffect would be called every time the prop would get a value assigned, even if that value was the same as before.
|
||||
// This resulted in loading and setting the project multiple times, even when navigating away from it.
|
||||
|
Loading…
x
Reference in New Issue
Block a user