Skip to content

Commit

Permalink
Fixed scalar map bug discovered by automated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mollybsmith-noaa committed Aug 22, 2024
1 parent c8aff37 commit 79806fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1897,7 +1897,7 @@ const parseQueryDataMapScalar = function (
return Number(a) - Number(b);
});
const limitType = plotParams["map-range-controls"];
if (limitType === "Default range") {
if (limitType === undefined || limitType === "Default range") {
highLimit = filteredValues[Math.floor(filteredValues.length * 0.98)];
lowLimit = filteredValues[Math.floor(filteredValues.length * 0.02)];
} else {
Expand Down

0 comments on commit 79806fd

Please sign in to comment.