don't drop the value when it equals to None
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user