grafana / scenes

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

Variables: Fixes sceneInterpolator when string contains variables with object prototype function names #785

Closed torkelo closed 3 months ago

torkelo commented 3 months ago

Fixes issues interpolating a string like "$toString" , if there is no variable named toString this should leave the original string unchanged but due to using object property lookup we matched object prototype functions (Both on scopedVars and macros)

📦 Published PR as canary version: 4.30.0--canary.785.9463381206.0
:sparkles: Test out this PR locally via: ```bash npm install @grafana/scenes-react@4.30.0--canary.785.9463381206.0 npm install @grafana/scenes@4.30.0--canary.785.9463381206.0 # or yarn add @grafana/scenes-react@4.30.0--canary.785.9463381206.0 yarn add @grafana/scenes@4.30.0--canary.785.9463381206.0 ```
grafanabot commented 3 months ago

:rocket: PR was released in v4.31.0 :rocket: