Fixes nits for #5758 (#5763)

## Summary

1. Fixes nits for #5758
2. Adds some git ignores

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-5763-Fixes-nits-for-5758-2796d73d36508192b3e6feecfcacf38b)
by [Unito](https://www.unito.io)

---------

Co-authored-by: filtered <176114999+webfiltered@users.noreply.github.com>
This commit is contained in:
Arjan Singh
2025-09-24 18:45:33 -07:00
committed by GitHub
parent bc4549244e
commit b96bf3871c
3 changed files with 26 additions and 28 deletions

View File

@@ -308,16 +308,20 @@ watch(
const nodeErrors = lastNodeErrors?.[node.id]
if (!nodeErrors) continue
let slotErrorsChanged = false
for (const error of nodeErrors.errors) {
if (!error.extra_info?.input_name) continue
const inputIndex = node.findInputSlot(error.extra_info.input_name)
if (inputIndex === -1) continue
node.inputs[inputIndex].hasErrors = true
slotErrorsChanged = true
}
const validErrors = nodeErrors.errors.filter(
(error) => error.extra_info?.input_name !== undefined
)
const slotErrorsChanged =
validErrors.length > 0 &&
validErrors.some((error) => {
const inputName = error.extra_info!.input_name!
const inputIndex = node.findInputSlot(inputName)
if (inputIndex !== -1) {
node.inputs[inputIndex].hasErrors = true
return true
}
return false
})
// Trigger Vue node data update if slot errors changed
if (slotErrorsChanged && comfyApp.graph.onTrigger) {