From 17540b62796ca18e943d1ea786637d7e3df17a38 Mon Sep 17 00:00:00 2001 From: James Lyne Date: Thu, 20 May 2021 15:30:55 +0100 Subject: [PATCH] Fix build --- src/App.vue | 4 ++-- src/components/sidebar/ServerListItem.vue | 4 ++-- src/store/state.ts | 6 +++++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/App.vue b/src/App.vue index 28be75f..e9f6b60 100644 --- a/src/App.vue +++ b/src/App.vue @@ -63,7 +63,7 @@ export default defineComponent({ return; } - const error = `Failed to load server configuration for '${store.state.currentServer.id}'`; + const error = `Failed to load server configuration for '${store.state.currentServer!.id}'`; console.error(`${error}:`, e); window.showSplashError(`${error}\n${e}`, false, ++configAttempts.value); setTimeout(() => loadConfiguration(), 1000); @@ -126,7 +126,7 @@ export default defineComponent({ watch(title, (title) => document.title = title); watch(currentUrl, (url) => window.history.replaceState({}, '', url)); - watch(currentServer, (newServer: LiveAtlasServerDefinition) => { + watch(currentServer, (newServer?: LiveAtlasServerDefinition) => { window.showSplash(); stopUpdates(); diff --git a/src/components/sidebar/ServerListItem.vue b/src/components/sidebar/ServerListItem.vue index d2a192d..f9b7bad 100644 --- a/src/components/sidebar/ServerListItem.vue +++ b/src/components/sidebar/ServerListItem.vue @@ -15,8 +15,8 @@ -->