Browse Source

fix: add targetHandleId for audio→generateVideo in connection drop menu

When dragging an audio connection and dropping to create a generateVideo
node, the audio input handle was not wired because the case was missing
from handleMenuSelect.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
handoff-20260429-1057
shrimbly 3 months ago
parent
commit
dec0086ece
  1. 4
      src/components/WorkflowCanvas.tsx

4
src/components/WorkflowCanvas.tsx

@ -1207,6 +1207,10 @@ export function WorkflowCanvas() {
} else if (nodeType === "generateAudio") {
// GenerateAudio outputs audio (no audio input to wire to)
sourceHandleIdForNewNode = "audio";
} else if (nodeType === "generateVideo") {
// GenerateVideo accepts audio input and outputs video
targetHandleId = "audio";
sourceHandleIdForNewNode = "video";
} else if (nodeType === "videoStitch") {
// VideoStitch accepts audio
targetHandleId = "audio";

Loading…
Cancel
Save