Commit 5e484e83 by Patrick O'Carroll

added if to check if new variable has been added

parent 62819105
......@@ -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 (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment