Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
49705dc9
Unverified
Commit
49705dc9
authored
Mar 21, 2023
by
Guo Y.K
Browse files
ui: hide decimal fraction for int fields
parent
aa2ddfab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
web/scripts/widgets.js
web/scripts/widgets.js
+1
-0
No files found.
web/scripts/widgets.js
View file @
49705dc9
...
@@ -103,6 +103,7 @@ export const ComfyWidgets = {
...
@@ -103,6 +103,7 @@ export const ComfyWidgets = {
},
},
INT
(
node
,
inputName
,
inputData
)
{
INT
(
node
,
inputName
,
inputData
)
{
const
{
val
,
config
}
=
getNumberDefaults
(
inputData
,
1
);
const
{
val
,
config
}
=
getNumberDefaults
(
inputData
,
1
);
Object
.
assign
(
config
,
{
precision
:
0
})
return
{
return
{
widget
:
node
.
addWidget
(
widget
:
node
.
addWidget
(
"
number
"
,
"
number
"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment