source changed to target
This commit is contained in:
parent
c980a96005
commit
85c9a721ee
5 changed files with 17 additions and 17 deletions
|
|
@ -38,7 +38,7 @@ export default function ParameterComponent({
|
|||
}, [data.id, position, updateNodeInternals]);
|
||||
|
||||
const [enabled, setEnabled] = useState(data.node.template[name]?.value ?? false);
|
||||
let disabled = data.reactFlowInstance.getEdges().some((e) => (e.sourceHandle === id));
|
||||
let disabled = data.reactFlowInstance.getEdges().some((e) => (e.targetHandle === id));
|
||||
|
||||
return (
|
||||
<div ref={ref} className="w-full flex flex-wrap justify-between items-center bg-gray-50 mt-1 px-5 py-2">
|
||||
|
|
@ -46,7 +46,7 @@ export default function ParameterComponent({
|
|||
<div className="text-sm truncate">{title}<span className="text-red-600">{required ? " *" : ""}</span></div>
|
||||
<Tooltip title={tooltipTitle + (required ? " (required)" : "")}>
|
||||
<Handle
|
||||
type={left ? "source" : "target"}
|
||||
type={left ? "target" : "source"}
|
||||
position={left ? Position.Left : Position.Right}
|
||||
id={id}
|
||||
isValidConnection={(connection) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue