fix: prevent null history.state errors in modal routing and task navigation (#1368)
This commit is contained in:
parent
7510f8d4be
commit
14e1bd2f55
|
|
@ -6,7 +6,7 @@ import {useProjectStore} from '@/stores/projects'
|
|||
export function useRouteWithModal() {
|
||||
const router = useRouter()
|
||||
const route = useRoute()
|
||||
const backdropView = computed(() => route.fullPath ? window.history.state.backdropView : undefined)
|
||||
const backdropView = computed(() => route.fullPath ? window.history.state?.backdropView : undefined)
|
||||
const baseStore = useBaseStore()
|
||||
const projectStore = useProjectStore()
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
:key="p.id"
|
||||
>
|
||||
<a
|
||||
v-if="router.options.history.state.back?.includes('/projects/'+p.id+'/') || false"
|
||||
v-if="router.options.history.state?.back?.includes('/projects/'+p.id+'/') || false"
|
||||
v-shortcut="p.id === project?.id ? 'u' : ''"
|
||||
@click="router.back()"
|
||||
>
|
||||
|
|
|
|||
Loading…
Reference in New Issue