IOS safari whisper support (#2870)

* fix: variables check

* remove log

* perf: safari whisper

* feat: comment

* perf: connetion check

* doc
This commit is contained in:
Archer
2024-10-10 12:24:07 +08:00
committed by shilin66
parent b6e74b6928
commit 942d56b33d
5 changed files with 19 additions and 13 deletions

View File

@@ -23,8 +23,9 @@ export const ToolTargetHandle = ({ show, nodeId }: ToolHandleProps) => {
const connected = edges.some((edge) => edge.target === nodeId && edge.targetHandle === handleId);
// if top handle is connected, return null
const showHandle =
connected || (show && connectingEdge?.handleId === NodeOutputKeyEnum.selectedTools);
const showHandle = connectingEdge
? show && connectingEdge.handleId === NodeOutputKeyEnum.selectedTools
: connected;
const Render = useMemo(() => {
return (