Skip to content

Commit

Permalink
Merge pull request #1021 from Abby-Wheelis/staging_dashboard_error_fix
Browse files Browse the repository at this point in the history
🚑 🐛 Staging dashboard error fix
  • Loading branch information
shankari authored Aug 23, 2023
2 parents b9508cc + 8d82de3 commit 9579012
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/js/metrics-mappings.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ angular.module('emission.main.metrics.mappings', ['emission.plugin.logger',

cdh.populateCustomMETs = function() {
let standardMETs = METDatasetHelper.getStandardMETs();
let modeOptions = cdh.inputParams["MODE"].options;
let modeOptions = cdh.inputParams["MODE"];
let modeMETEntries = modeOptions.map((opt) => {
if (opt.met_equivalent) {
let currMET = standardMETs[opt.met_equivalent];
Expand Down Expand Up @@ -358,7 +358,7 @@ angular.module('emission.main.metrics.mappings', ['emission.plugin.logger',
};

cdh.populateCustomFootprints = function() {
let modeOptions = cdh.inputParams["MODE"].options;
let modeOptions = cdh.inputParams["MODE"];
let modeCO2PerMeter = modeOptions.map((opt) => {
if (opt.range_limit_km) {
if (cdh.range_limited_motorized) {
Expand Down

0 comments on commit 9579012

Please sign in to comment.