mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 08:05:43 -06:00
Merge pull request #14002 from Nexucis/bugfix/template-srv
[Bugfix] Don't drop the value when it's equal to None
This commit is contained in:
commit
057696a0f8
@ -28,7 +28,7 @@ export class TemplateSrv {
|
||||
const existsOrEmpty = value => value || value === '';
|
||||
|
||||
this.index = this.variables.reduce((acc, currentValue) => {
|
||||
if (currentValue.current && !currentValue.current.isNone && existsOrEmpty(currentValue.current.value)) {
|
||||
if (currentValue.current && (currentValue.current.isNone || existsOrEmpty(currentValue.current.value))) {
|
||||
acc[currentValue.name] = currentValue;
|
||||
}
|
||||
return acc;
|
||||
|
Loading…
Reference in New Issue
Block a user