From 3c1f04bfe7ead83b4743e8b2ff25cbca7f9aecb0 Mon Sep 17 00:00:00 2001 From: svenadlung Date: Mon, 22 Nov 2021 22:29:59 +0100 Subject: [PATCH] Fix loading wrong source if memorized framework demo is not given --- demos/preview/Demo.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/preview/Demo.vue b/demos/preview/Demo.vue index 916a688f..946e0eef 100644 --- a/demos/preview/Demo.vue +++ b/demos/preview/Demo.vue @@ -232,7 +232,7 @@ export default { mounted() { // TODO: load language from url params - const intitialTab = localStorage.tab ? localStorage.tab : this.sortedTabs[0]?.name + const intitialTab = localStorage.tab && this.sources[localStorage.tab] ? localStorage.tab : this.sortedTabs[0]?.name this.setTab(intitialTab) window.document.addEventListener('editor', this.onEditor, false)