Skip to content

Commit e20a2ea

Browse files
committed
bugfix
1 parent 9e7c7c0 commit e20a2ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/common/comfyui-bridge/prompt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export function createPrompt(workflowSource: PersistedWorkflowDocument, widgets:
145145
// set random value
146146
for (const [property, value] of Object.entries(fields)) {
147147
const input = widgets[node.value.widget].input.required[property]
148-
if (input && Input.isInt(input) && value === -1) {
148+
if (input && Input.isInt(input) && value === -1 && Widget.isSeedParam(property)) {
149149
fields[property] = Math.trunc(Math.random() * input[1].max!)
150150
}
151151
}

0 commit comments

Comments
 (0)