Skip to content

Commit 6687056

Browse files
committed
changed precision check from undefined to null
1 parent 9941141 commit 6687056

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/litegraph.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9838,7 +9838,7 @@ LGraphNode.prototype.executeAction = function(action)
98389838
ctx.fillStyle = text_color;
98399839
ctx.fillText(
98409840
w.label || w.name + " " + Number(w.value).toFixed(
9841-
w.options.precision !== undefined
9841+
w.options.precision !== null
98429842
? w.options.precision
98439843
: 3
98449844
),

0 commit comments

Comments
 (0)