Browse Source

Fix last slash in HASTIC_SERVER_URL (#98)

master
Alexey Velikiy 6 years ago committed by GitHub
parent
commit
f225ee5409
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/module.ts

5
src/module.ts

@ -219,7 +219,10 @@ class GraphCtrl extends MetricsPanelCtrl {
if(this.templateSrv.index[BACKEND_VARIABLE_NAME] === undefined) {
return undefined;
}
return this.templateSrv.index[BACKEND_VARIABLE_NAME].current.value;
let val = this.templateSrv.index[BACKEND_VARIABLE_NAME].current.value;
val = val.replace(/\/+$/, "");
console.log('FUCK');
return val;
}
async runBackendConnectivityCheck() {

Loading…
Cancel
Save