Files
formbricks/apps/web/modules
Dhruwang b9a81f75f9 fix(charts): preserve Date instances when round-tripping time-based queries
parseQueryToState was casting Cube's persisted [isoString, isoString]
dateRange straight into TimeDimensionConfig's [Date, Date] without
converting the elements. Editing a saved time-based chart and re-running
buildCubeQuery then called formatDate on a string, blowing up with
"date.getFullYear is not a function".

- parseQueryToState now lifts the array entries through new Date(...) so
  the chart-builder state matches its declared shape.
- formatDate defensively accepts Date | string and coerces before use,
  so any other entry point handing us strings can't reproduce the crash.
2026-05-11 17:19:34 +05:30
..
2026-04-21 08:51:32 +00:00
2026-05-05 11:38:39 +05:30
2026-04-20 10:43:32 +00:00