mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
added if to check if new variable has been added
This commit is contained in:
parent
6281910591
commit
5e484e8393
@ -91,6 +91,9 @@ export class SaveDashboardModalCtrl {
|
||||
}
|
||||
|
||||
compareTemplating() {
|
||||
if (this.dashboardSrv.dash.originalTemplating.length !== this.dashboardSrv.dash.templating.list.length) {
|
||||
return (this.variableChange = false);
|
||||
}
|
||||
if (this.dashboardSrv.dash.templating.list.length > 0) {
|
||||
for (let i = 0; i < this.dashboardSrv.dash.templating.list.length; i++) {
|
||||
if (
|
||||
|
Loading…
Reference in New Issue
Block a user