From 49705dc947a896b12cdc325c3ea8e101512fe455 Mon Sep 17 00:00:00 2001 From: "Guo Y.K" Date: Tue, 21 Mar 2023 17:42:33 +0800 Subject: [PATCH] ui: hide decimal fraction for int fields --- web/scripts/widgets.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/scripts/widgets.js b/web/scripts/widgets.js index e1f63763..d6705d87 100644 --- a/web/scripts/widgets.js +++ b/web/scripts/widgets.js @@ -103,6 +103,7 @@ export const ComfyWidgets = { }, INT(node, inputName, inputData) { const { val, config } = getNumberDefaults(inputData, 1); + Object.assign(config, { precision: 0 }) return { widget: node.addWidget( "number",