diff --git a/src/lib/components/View.svelte b/src/lib/components/View.svelte
index 8e0b6854..d3df5e40 100644
--- a/src/lib/components/View.svelte
+++ b/src/lib/components/View.svelte
@@ -87,7 +87,7 @@
if (svgCode.length > 0) {
handlePanZoom(state);
container.innerHTML = svgCode;
- // console.log(container.innerHTML);
+ console.log({ svgCode });
const graphDiv = document.getElementById('graph-div');
if (!graphDiv) {
throw new Error('graph-div not found');
@@ -133,7 +133,7 @@
: 'text-yellow-600'} bg-base-100 bg-opacity-80 text-center"
id="errorContainer">
{#if error}
- {@html $stateStore.error.toString().replace(/\n/g, '
')}
+ {@html $stateStore.error?.toString().replace(/\n/g, '
')}
{:else}
Diagram out of sync.
Press (Sync button) or {cmdKey} + Enter to sync.