diff --git a/src/UI/InputElement/LanguagePicker.svelte b/src/UI/InputElement/LanguagePicker.svelte index ac59348dc..15329a48c 100644 --- a/src/UI/InputElement/LanguagePicker.svelte +++ b/src/UI/InputElement/LanguagePicker.svelte @@ -18,10 +18,9 @@ * EventStore to assign to, defaults to 'Locale.langauge' */ export let assignTo: UIEventSource = Locale.language; - export let preferredLanguages: UIEventSource; + export let preferredLanguages: UIEventSource = undefined; let preferredFiltered: string[] = undefined; - preferredLanguages.addCallbackAndRunD(preferredLanguages => { - + preferredLanguages?.addCallbackAndRunD(preferredLanguages => { let lng = navigator.language; if (lng === "en-US") { lng = "en";