From 14e1bd2f55f28407482120af8e675fa8566f3cb3 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Sun, 31 Aug 2025 19:14:25 +0000 Subject: [PATCH] fix: prevent null history.state errors in modal routing and task navigation (#1368) --- frontend/src/composables/useRouteWithModal.ts | 2 +- frontend/src/views/tasks/TaskDetailView.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/composables/useRouteWithModal.ts b/frontend/src/composables/useRouteWithModal.ts index fd5ad58ea..9fc4605ff 100644 --- a/frontend/src/composables/useRouteWithModal.ts +++ b/frontend/src/composables/useRouteWithModal.ts @@ -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() diff --git a/frontend/src/views/tasks/TaskDetailView.vue b/frontend/src/views/tasks/TaskDetailView.vue index e60c02829..12831f67e 100644 --- a/frontend/src/views/tasks/TaskDetailView.vue +++ b/frontend/src/views/tasks/TaskDetailView.vue @@ -28,7 +28,7 @@ :key="p.id" >