Skip to content

Commit fb3fd2d

Browse files
committed
fix(mcp): prevent remove popover from opening inadvertently
1 parent 592f58f commit fb3fd2d

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1824,7 +1824,9 @@ export const ToolInput = memo(function ToolInput({
18241824
).length > 1 ? (
18251825
<Popover
18261826
open={mcpRemovePopoverIndex === toolIndex}
1827-
onOpenChange={(open) => setMcpRemovePopoverIndex(open ? toolIndex : null)}
1827+
onOpenChange={(isOpen) => {
1828+
if (!isOpen) setMcpRemovePopoverIndex(null)
1829+
}}
18281830
>
18291831
<PopoverTrigger asChild>
18301832
<button

0 commit comments

Comments
 (0)