mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Variables: fixes error when setting adhoc variables values (#23580)
This commit is contained in:
parent
80f40040b0
commit
0091885b13
@ -3,7 +3,7 @@ import angular, { auto, ILocationService, IPromise, IQService } from 'angular';
|
||||
import _ from 'lodash';
|
||||
// Utils & Services
|
||||
import coreModule from 'app/core/core_module';
|
||||
import { variableTypes } from './types';
|
||||
import { VariableActions, variableTypes } from './types';
|
||||
import { Graph } from 'app/core/utils/dag';
|
||||
import { TemplateSrv } from 'app/features/templating/template_srv';
|
||||
import { TimeSrv } from 'app/features/dashboard/services/TimeSrv';
|
||||
@ -344,9 +344,9 @@ export class VariableSrv {
|
||||
}
|
||||
}
|
||||
|
||||
isVariableUrlValueDifferentFromCurrent(variable: any, urlValue: any) {
|
||||
isVariableUrlValueDifferentFromCurrent(variable: VariableActions, urlValue: any) {
|
||||
// lodash _.isEqual handles array of value equality checks as well
|
||||
return !_.isEqual(variable.current.value, urlValue);
|
||||
return !_.isEqual(variable.getValueForUrl(), urlValue);
|
||||
}
|
||||
|
||||
updateUrlParamsWithCurrentVariables() {
|
||||
|
Loading…
Reference in New Issue
Block a user