mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 08:58:58 +01:00
chore(react/type_widgets): accidental double source config
This commit is contained in:
parent
460e01a2d6
commit
3256c14a20
@ -68,7 +68,7 @@ export function JsPlumbItem({ x, y, children, draggable, sourceConfig, targetCon
|
||||
|
||||
useEffect(() => {
|
||||
if (!targetConfig || !apiRef?.current || !containerRef.current) return;
|
||||
apiRef.current.makeSource(containerRef.current, targetConfig);
|
||||
apiRef.current.makeTarget(containerRef.current, targetConfig);
|
||||
}, [ targetConfig ]);
|
||||
|
||||
return (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user