Describe the bug
When clicking through from the homepage to the prison page, the historical data chart will be rendered without margins or visible axis labels (aka in "preview" form). Reloading the page resolves the error, which suggests that some UI state is being inadvertently carried over from the homepage.
To Reproduce
Steps to reproduce the behavior:
Go to spotlight-staging.recidiviz.org/us-nd
Click on "Explore Prison Data"
Scroll down to section 3, the time series
See error
Expected behavior
The chart is rendered with correct margins and axis labels.
Screenshots
Desktop (please complete the following information):
n/a
Smartphone (please complete the following information):
n/a
Additional context
Currently affects staging only as the new homepage has not been deployed to prod.
Describe the bug When clicking through from the homepage to the prison page, the historical data chart will be rendered without margins or visible axis labels (aka in "preview" form). Reloading the page resolves the error, which suggests that some UI state is being inadvertently carried over from the homepage.
To Reproduce Steps to reproduce the behavior:
Expected behavior The chart is rendered with correct margins and axis labels.
Screenshots
Desktop (please complete the following information): n/a
Smartphone (please complete the following information): n/a
Additional context Currently affects staging only as the new homepage has not been deployed to prod.