chore(react/type_widgets): accidental double source config

This commit is contained in:
Elian Doran 2025-10-04 09:06:24 +03:00
parent 460e01a2d6
commit 3256c14a20
No known key found for this signature in database

View File

@ -68,7 +68,7 @@ export function JsPlumbItem({ x, y, children, draggable, sourceConfig, targetCon
useEffect(() => { useEffect(() => {
if (!targetConfig || !apiRef?.current || !containerRef.current) return; if (!targetConfig || !apiRef?.current || !containerRef.current) return;
apiRef.current.makeSource(containerRef.current, targetConfig); apiRef.current.makeTarget(containerRef.current, targetConfig);
}, [ targetConfig ]); }, [ targetConfig ]);
return ( return (