From 65a02b7cfd7e0fdb8dadd00cea5e65bef26266ac Mon Sep 17 00:00:00 2001 From: Matt Lavin Date: Fri, 6 Dec 2024 09:22:46 -0500 Subject: [PATCH 1/2] Fix toggling between nodes with inputs --- packages/workflow/src/ui/sidebar/Sidebar.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/workflow/src/ui/sidebar/Sidebar.tsx b/packages/workflow/src/ui/sidebar/Sidebar.tsx index c3bfd07..fbd17e7 100644 --- a/packages/workflow/src/ui/sidebar/Sidebar.tsx +++ b/packages/workflow/src/ui/sidebar/Sidebar.tsx @@ -67,7 +67,9 @@ const useSidebarContent = () => { return ( <> - + {/* Include a key attribute so that the inputs in the action + update as the selected node changes. */} + ) From a4ba325569f618f38f0665bf11e4acb94ebc5b11 Mon Sep 17 00:00:00 2001 From: Matt Lavin Date: Fri, 6 Dec 2024 09:25:41 -0500 Subject: [PATCH 2/2] Add changeset --- .changeset/tough-onions-lay.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/tough-onions-lay.md diff --git a/.changeset/tough-onions-lay.md b/.changeset/tough-onions-lay.md new file mode 100644 index 0000000..5e028e1 --- /dev/null +++ b/.changeset/tough-onions-lay.md @@ -0,0 +1,5 @@ +--- +"@inngest/workflow-kit": patch +--- + +Fix sidebar behavior when toggling between nodes with inputs