Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/tough-onions-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@inngest/workflow-kit": patch
---

Fix sidebar behavior when toggling between nodes with inputs
4 changes: 3 additions & 1 deletion packages/workflow/src/ui/sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ const useSidebarContent = () => {
return (
<>
<SidebarHeader />
<SidebarActionForm workflowAction={workflowAction} engineAction={engineAction} />
{/* Include a key attribute so that the inputs in the action
update as the selected node changes. */}
<SidebarActionForm workflowAction={workflowAction} engineAction={engineAction} key={`node-${selectedNode.id}`} />
<SidebarFooter />
</>
)
Expand Down
Loading