diff --git a/src/lib/components/history/history.svelte b/src/lib/components/history/history.svelte
index 6e08c835..ea218b5a 100644
--- a/src/lib/components/history/history.svelte
+++ b/src/lib/components/history/history.svelte
@@ -69,19 +69,14 @@
let isOpen = true;
-
-
-
-
-
-
-
-
-
+
+
+
+
{#each $historyStore as { state, time, name }}
diff --git a/src/lib/components/preset.svelte b/src/lib/components/preset.svelte
index 7a3f8475..6f5a84a9 100644
--- a/src/lib/components/preset.svelte
+++ b/src/lib/components/preset.svelte
@@ -1,5 +1,6 @@
-
- {#each Object.keys(samples) as sample}
-
- {/each}
-
+
+
+ {#each Object.keys(samples) as sample}
+
+ {/each}
+
+
diff --git a/src/lib/components/tabs.svelte b/src/lib/components/tabs.svelte
index 81a880b0..70715f99 100644
--- a/src/lib/components/tabs.svelte
+++ b/src/lib/components/tabs.svelte
@@ -3,10 +3,11 @@
import { fade } from 'svelte/transition';
export let tabs: Tab[] = [];
- export let activeTabID: string = tabs[0].id;
export let title: string;
-
export let isOpen = false;
+
+ let activeTabID: string = tabs[0]?.id;
+
const dispatch = createEventDispatcher();
const toggleTabs = (tab: Tab) => {
activeTabID = tab.id;
@@ -14,22 +15,24 @@
};
- (isOpen = !isOpen)}>{title}
-{#if isOpen}
-
-{/if}
+
+
(isOpen = !isOpen)}>{title}
+ {#if isOpen && tabs}
+
+ {/if}
+
diff --git a/src/routes/edit.svelte b/src/routes/edit.svelte
index 681eaf4e..0a6a19e7 100644
--- a/src/routes/edit.svelte
+++ b/src/routes/edit.svelte
@@ -4,7 +4,6 @@
import Preset from '$lib/components/preset.svelte';
import View from '$lib/components/view.svelte';
import Card from '$lib/components/card.svelte';
- import Tabs from '$lib/components/tabs.svelte';
import History from '$lib/components/history/history.svelte';
import {
initURLSubscription,
@@ -111,22 +110,17 @@
-
-
-
-
-
-
- {#if !$codeStore.autoSync}
-
- {/if}
-
-
+
+
+ {#if !$codeStore.autoSync}
+
+ {/if}
+
@@ -140,14 +134,13 @@
-
-
-
Diagram
-
-
+
+
+