From dcabdac385e88c5836cddef5fd2cfe245dbfa264 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Fri, 23 Dec 2022 08:48:17 -0600 Subject: [PATCH] Fixed random error I started getting about main being undefined?? --- src/components/Options.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Options.vue b/src/components/Options.vue index 657388f..08245dc 100644 --- a/src/components/Options.vue +++ b/src/components/Options.vue @@ -98,7 +98,7 @@ const isPaused = computed({ }); const canAutoSave = computed( - () => (layers as any).main.days[(layers as any).main.day.value - 1].opened.value + () => (layers as any).main?.days[(layers as any).main?.day.value - 1].opened.value ); const autosaveTitle = jsx(() => (