changed precision check from undefined to null

This commit is contained in:
Guillaume Faguet
2023-07-31 10:18:53 +02:00
parent 994114160b
commit 6687056387

View File

@@ -9838,7 +9838,7 @@ LGraphNode.prototype.executeAction = function(action)
ctx.fillStyle = text_color;
ctx.fillText(
w.label || w.name + " " + Number(w.value).toFixed(
w.options.precision !== undefined
w.options.precision !== null
? w.options.precision
: 3
),