Commit 443efc60 authored by Mark Harding's avatar Mark Harding

(fix): couple issues when configs fails to load

No related merge requests found
Pipeline #115125747 waiting for manual action with stages
in 95 minutes and 40 seconds
......@@ -67,7 +67,7 @@ export class SearchBarComponent {
}
unListen() {
this.routerSubscription.unsubscribe();
if (this.routerSubscription) this.routerSubscription.unsubscribe();
}
handleUrl(url: string) {
......
......@@ -19,6 +19,8 @@ export class FeaturesService {
has(feature: string): boolean {
const features = this.configs.get('features');
if (!features) return false;
if (!feature) {
throw new Error('Invalid feature ID');
}
......
Please register or to comment