From 9ff70be98106fd6bfe3c1ffe008fc1bd5a0b5180 Mon Sep 17 00:00:00 2001 From: Tobias Date: Thu, 15 Jun 2023 05:03:52 +0200 Subject: [PATCH] ThemeButton: Make layoutToUse optional so SubtleLink is happy SubtleLink did not provide layoutToUse. And in ThemeButton, it was guarded already ``` if (layout.id === state?.layoutToUse?.id) { return undefined } ``` --- UI/BigComponents/ThemeButton.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/BigComponents/ThemeButton.svelte b/UI/BigComponents/ThemeButton.svelte index ac91ee78a..4dfe0aeb7 100644 --- a/UI/BigComponents/ThemeButton.svelte +++ b/UI/BigComponents/ThemeButton.svelte @@ -11,7 +11,7 @@ export let theme: LayoutInformation export let isCustom: boolean = false export let userDetails: UIEventSource - export let state: { layoutToUse: { id: string }; osmConnection: OsmConnection } + export let state: { layoutToUse?: { id: string }; osmConnection: OsmConnection } $: title = new Translation( theme.title,