feature/projects-all-the-way-down #3323
|
@ -81,7 +81,7 @@ export const useBaseStore = defineStore('base', () => {
|
|||
async function handleSetCurrentProject(
|
||||
{project, forceUpdate = false}: {project: IProject | null, forceUpdate?: boolean},
|
||||
) {
|
||||
if (project === null) {
|
||||
if (project === null || typeof project === 'undefined') {
|
||||
setCurrentProject({})
|
||||
setBackground('')
|
||||
setBlurHash('')
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<router-link :to="{ name: 'project.index', params: { projectId: p.id } }">
|
||||
{{ getProjectTitle(p) }}
|
||||
</router-link>
|
||||
<span class="has-text-grey-light" v-if="p.id !== project.id"> > </span>
|
||||
<span class="has-text-grey-light" v-if="p.id !== project?.id"> > </span>
|
||||
|
||||
</template>
|
||||
</h6>
|
||||
|
||||
|
@ -539,7 +539,7 @@ const visible = ref(false)
|
|||
|
||||
konrad marked this conversation as resolved
Outdated
dpschen
commented
`getProjectById` returns `undefined` if there is no project with that id. So why not use that directly?
konrad
commented
Done Done
|
||||
const taskId = toRef(props, 'taskId')
|
||||
|
||||
const project = computed(() => task.projectId ? projectStore.projects[task.projectId] : null)
|
||||
const project = computed(() => projectStore.projects[task.projectId])
|
||||
watchEffect(() => {
|
||||
baseStore.handleSetCurrentProject({
|
||||
project: project.value,
|
||||
|
|
Reference in New Issue
Block a user
Don't end with the error sign. Only use it in between two ancestors or as separator to task title if the latter is direclty next to it.
But that's what this does?