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
    }
```
This commit is contained in:
Tobias 2023-06-15 05:03:52 +02:00
parent 1e56eb5503
commit 9ff70be981

View file

@ -11,7 +11,7 @@
export let theme: LayoutInformation
export let isCustom: boolean = false
export let userDetails: UIEventSource<UserDetails>
export let state: { layoutToUse: { id: string }; osmConnection: OsmConnection }
export let state: { layoutToUse?: { id: string }; osmConnection: OsmConnection }
$: title = new Translation(
theme.title,