Commit f7aa9327 authored by Kevin Di Lallo's avatar Kevin Di Lallo
Browse files

remove dashes from influxdb database names in frontend

parent b3373aa9
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -296,9 +296,12 @@ const ViewForName = ({
}) => {
  const appIds = apps.map(app => app.data.id);

  // Remove '-' from scenario name
  var scenario = scenarioName.replace('-', '');

  const dashboard = 'http://' + location.hostname + ':30009/d/100/metrics-dashboard?orgId=1';
  const datasource = '&var-datasource=meep-influxdb';
  const database = '&var-database=' + scenarioName;
  const database = '&var-database=' + scenario;
  const refreshInterval = '&refresh=1s';
  const srcApp = '&var-src=' + selectedSource;
  const destApp = '&var-dest=' + selectedDest;