mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
fix: address CodeRabbit review feedback
- Remove unused keysBySource from store public API - Fix socketless required input validation (widget-only inputs) Amp-Thread-ID: https://ampcode.com/threads/T-019c0d45-1155-70d9-830a-ed6e50e23ee8 Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
@@ -32,9 +32,8 @@ export function useRequiredConnectionValidator(): void {
|
||||
|
||||
for (const inputName of Object.keys(nodeDef.input.required)) {
|
||||
const slot = node.inputs?.find((s) => s.name === inputName)
|
||||
if (!slot) continue
|
||||
|
||||
const hasConnection = slot.link !== null && slot.link !== undefined
|
||||
const hasConnection = slot?.link !== null && slot?.link !== undefined
|
||||
const hasWidgetValue = hasWidgetValueForInput(node, inputName)
|
||||
|
||||
if (!hasConnection && !hasWidgetValue) {
|
||||
|
||||
@@ -135,7 +135,6 @@ export const useGraphErrorStateStore = defineStore('graphErrorState', () => {
|
||||
version,
|
||||
errorsByKey,
|
||||
keysByNode,
|
||||
keysBySource,
|
||||
execute,
|
||||
getErrorsForNode,
|
||||
hasErrorsForNode,
|
||||
|
||||
Reference in New Issue
Block a user