Skip to content

Commit 8fa5dca

Browse files
committed
fix(tool-input): reset drilldown state on tool selection to prevent stale view
1 parent ca14f4d commit 8fa5dca

File tree

1 file changed

+2
-0
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input

1 file changed

+2
-0
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,6 +1052,7 @@ export const ToolInput = memo(function ToolInput({
10521052
])
10531053

10541054
if (closePopover) {
1055+
setMcpServerDrilldown(null)
10551056
setOpen(false)
10561057
}
10571058
},
@@ -1313,6 +1314,7 @@ export const ToolInput = memo(function ToolInput({
13131314
...filteredTools.map((tool) => ({ ...tool, isExpanded: false })),
13141315
newTool,
13151316
])
1317+
setMcpServerDrilldown(null)
13161318
setOpen(false)
13171319
},
13181320
disabled: isPreview || disabled || serverAlreadySelected,

0 commit comments

Comments
 (0)