grafana / scenes

Build Grafana dashboards directly in your Grafana app plugins.
https://grafana.com/developers/scenes
Apache License 2.0
141 stars 21 forks source link

Fix a crash when refresh interval set to empty string #933

Closed oscarkilhed closed 1 month ago

oscarkilhed commented 1 month ago

If a dashboard has refresh_interval set to an array with just an empty string in it [""] the parsing of the interval will fail and the dashboard will fail to load.

This fix filters out any intervals we're unable to parse.

📦 Published PR as canary version: 5.19.1--canary.933.11257845651.0
:sparkles: Test out this PR locally via: ```bash npm install @grafana/scenes-react@5.19.1--canary.933.11257845651.0 npm install @grafana/scenes@5.19.1--canary.933.11257845651.0 # or yarn add @grafana/scenes-react@5.19.1--canary.933.11257845651.0 yarn add @grafana/scenes@5.19.1--canary.933.11257845651.0 ```
scenes-repo-bot-access-token[bot] commented 1 month ago

:rocket: PR was released in v5.19.1 :rocket: