mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 17:08: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(() => {
|
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 (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user