diff --git a/apps/example-apps/svelte/examples/edges/custom-connectionline/ConnectionLine.svelte b/apps/example-apps/svelte/examples/edges/custom-connectionline/ConnectionLine.svelte
index 8c7cae396..336dded49 100644
--- a/apps/example-apps/svelte/examples/edges/custom-connectionline/ConnectionLine.svelte
+++ b/apps/example-apps/svelte/examples/edges/custom-connectionline/ConnectionLine.svelte
@@ -6,25 +6,25 @@
let path = '';
$: {
- const { sourceX, sourceY, targetX, targetY } = $connection;
- path = `M${sourceX},${sourceY} C ${sourceX} ${targetY} ${sourceX} ${targetY} ${targetX},${targetY}`;
+ const { from, to } = $connection;
+ path = `M${from.x},${from.y} C ${from.x} ${to.y} ${from.x} ${to.y} ${to.x},${to.y}`;
}
-{#if $connection.path}
+{#if path}
{/if}