Skip to content

Commit

Permalink
fix: gantt reset button
Browse files Browse the repository at this point in the history
  • Loading branch information
dpschen committed Jan 29, 2025
1 parent e8095c0 commit 4532cdf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/views/project/helpers/useGanttFilters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ function ganttRouteToFilters(route: Partial<RouteLocationNormalized>): GanttFilt
}

function ganttGetDefaultFilters(route: Partial<RouteLocationNormalized>): 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
Expand Down

0 comments on commit 4532cdf

Please sign in to comment.