Skip to content
Merged
Prev Previous commit
Next Next commit
Ensure API prompt inputs are plain objects
  • Loading branch information
christian-byrne committed Dec 13, 2025
commit 2546bcce9269f6f5185990d74cc1a57bfcb938b8
3 changes: 2 additions & 1 deletion src/scripts/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1510,7 +1510,8 @@ export class ComfyApp {
}

const { class_type: classType, inputs } = node as Record<string, unknown>
return typeof classType === 'string' && _.isObject(inputs)
const inputsIsRecord = _.isObject(inputs) && !Array.isArray(inputs)
return typeof classType === 'string' && inputsIsRecord
})
}

Expand Down
Loading