Skip to content

Commit a1f46f3

Browse files
committed
fix isosurface _vMax calculation when isomax is null
1 parent 380fa8c commit a1f46f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/traces/isosurface/calc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module.exports = function calc(gd, trace) {
3535
trace._minValues = min;
3636
trace._maxValues = max;
3737
trace._vMin = (trace.isomin === undefined || trace.isomin === null) ? min : trace.isomin;
38-
trace._vMax = (trace.isomax === undefined || trace.isomin === null) ? max : trace.isomax;
38+
trace._vMax = (trace.isomax === undefined || trace.isomax === null) ? max : trace.isomax;
3939

4040
colorscaleCalc(gd, trace, {
4141
vals: [trace._vMin, trace._vMax],

0 commit comments

Comments
 (0)