secanis/stjorna

Set initial language in setup page does not work

matthiasbaldi opened this issue · 0 comments

When calling the first time the application we will hit the following error:

ERROR TypeError: Cannot read property 'language' of null
    at SafeSubscriber.eval [as _next] (app.component.ts?e6ca:26)
    at SafeSubscriber.__tryOrUnsub (Subscriber.js?1453:196)
    at SafeSubscriber.next (Subscriber.js?1453:134)
    at Subscriber._next (Subscriber.js?1453:77)
    at Subscriber.next (Subscriber.js?1453:54)
    at BehaviorSubject._subscribe (BehaviorSubject.js?dba1:22)
    at BehaviorSubject.Observable._trySubscribe (Observable.js?e9b9:43)
    at BehaviorSubject.Subject._trySubscribe (Subject.js?2bd2:89)
    at BehaviorSubject.Observable.subscribe (Observable.js?e9b9:29)
    at Observable._subscribe (Observable.js?e9b9:78)

This error occurs it the file app.component.ts on line 25.
In the subscription, the loginStatusHandler is undefined.