From 4532cdfa006d86f25ffaacbfe8833bacdb5b172c Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Wed, 29 Jan 2025 17:47:57 +0100 Subject: [PATCH] fix: gantt reset button --- frontend/src/views/project/helpers/useGanttFilters.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/project/helpers/useGanttFilters.ts b/frontend/src/views/project/helpers/useGanttFilters.ts index cbfa78c73..450a35f98 100644 --- a/frontend/src/views/project/helpers/useGanttFilters.ts +++ b/frontend/src/views/project/helpers/useGanttFilters.ts @@ -51,7 +51,10 @@ function ganttRouteToFilters(route: Partial): GanttFilt } function ganttGetDefaultFilters(route: Partial): GanttFilters { - return ganttRouteToFilters({params: {projectId: route.params?.projectId as string}}) + return ganttRouteToFilters({params: { + projectId: route.params?.projectId as string, + viewId: route.params?.viewId as string, + }}) } // FIXME: use zod for this