mirror of
https://github.com/TriliumNext/Trilium.git
synced 2025-12-10 18:45:52 -06: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