Skip to content

Build your personal knowledge base with Trilium Notes

chore(react/type_widgets): accidental double source config

Elian Doran3256c14a20bd
diff --git a/apps/client/src/widgets/type_widgets/relation_map/jsplumb.tsx b/apps/client/src/widgets/type_widgets/relation_map/jsplumb.tsx
index d304b41a9f..dc8be39ebe 100644
--- a/apps/client/src/widgets/type_widgets/relation_map/jsplumb.tsx
+++ b/apps/client/src/widgets/type_widgets/relation_map/jsplumb.tsx
@@ -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 (