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:
parent
1e56eb5503
commit
9ff70be981
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue