Actual result
The dashboard quickly displays the correct day's data, before reloading and setting the filters back to "Last 7 days"
Expected result
The dashboard displays data for the selected day. The date range filters are set accordingly.
Notes
This is due to the new isLocalDateChange variable in the date-range.svelte component. It works within that component, but breaks when a day is selected in the visitors chart.
The fix is to make isLocalDateChange a store and use it in the visitors chart.
Steps to reproduce
Actual result The dashboard quickly displays the correct day's data, before reloading and setting the filters back to "Last 7 days"
Expected result The dashboard displays data for the selected day. The date range filters are set accordingly.
Notes This is due to the new
isLocalDateChange
variable in thedate-range.svelte
component. It works within that component, but breaks when a day is selected in the visitors chart. The fix is to makeisLocalDateChange
a store and use it in the visitors chart.