Adds logic for a special case when current value is the ALL_VALUE but the variable has not enabled all value, in this case we should just pick the first option.
Refactored the validation function a bit so we can simplify the long nested if/else statements and leverage early return pattern instead.
📦 Published PR as canary version: 4.24.2--canary.757.9283024412.0
:sparkles: Test out this PR locally via:
```bash
npm install @grafana/scenes@4.24.2--canary.757.9283024412.0
# or
yarn add @grafana/scenes@4.24.2--canary.757.9283024412.0
```
Adds logic for a special case when current value is the ALL_VALUE but the variable has not enabled all value, in this case we should just pick the first option.
Refactored the validation function a bit so we can simplify the long nested if/else statements and leverage early return pattern instead.
Fixes https://github.com/grafana/grafana/issues/88391
📦 Published PR as canary version:
4.24.2--canary.757.9283024412.0
:sparkles: Test out this PR locally via: ```bash npm install @grafana/scenes@4.24.2--canary.757.9283024412.0 # or yarn add @grafana/scenes@4.24.2--canary.757.9283024412.0 ```