Skip to content

Commit

Permalink
Fixed bug discovered by automated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mollybsmith-noaa committed Aug 20, 2024
1 parent 32c1224 commit 6111d5b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3289,7 +3289,11 @@ const queryDBSpecialtyCurve = function (
dFuture.wait();

// if we have only null values, return a no data found
if (!(d.x.some((el) => el !== null) && d.y.some((el) => el !== null))) {
if (appParams.plotType !== matsTypes.PlotTypes.histogram) {
if (!(d.x.some((el) => el !== null) && d.y.some((el) => el !== null))) {
error = matsTypes.Messages.NO_DATA_FOUND;
}
} else if (!d.subVals.some((el) => el !== null)) {
error = matsTypes.Messages.NO_DATA_FOUND;
}

Expand Down

0 comments on commit 6111d5b

Please sign in to comment.