Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mollybsmith-noaa committed Aug 22, 2024
1 parent fa90208 commit c8aff37
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,12 @@ const getMatchedDataSet = function (dataset, curveInfoParams, appParams, binStat
})
: [];
if (hasLevels) {
subLevs[curveIndex] = subLevsRaw[curveIndex].reduce(function (a, b) {
if (a.length === 0) return b;
if (b.length === 0) return a;
return a.concat(b);
});
subLevs[curveIndex] =
subLevsRaw[curveIndex].length > 0
? subLevsRaw[curveIndex].reduce(function (a, b) {
return a.concat(b);
})
: [];
}
}

Expand Down

0 comments on commit c8aff37

Please sign in to comment.