diff --git a/modules/ui/src/app/store/effects.spec.ts b/modules/ui/src/app/store/effects.spec.ts index a6dfaac46..024782c63 100644 --- a/modules/ui/src/app/store/effects.spec.ts +++ b/modules/ui/src/app/store/effects.spec.ts @@ -344,7 +344,7 @@ describe('Effects', () => { it('should dispatch setHasConnectionSettings with false if device_intf is not present', done => { actions$ = of( actions.fetchSystemConfigSuccess({ - systemConfig: { network: {} }, + systemConfig: { network: { device_intf: '' } }, }) ); diff --git a/modules/ui/src/app/store/effects.ts b/modules/ui/src/app/store/effects.ts index 5fbcc5fae..b6cdfcc71 100644 --- a/modules/ui/src/app/store/effects.ts +++ b/modules/ui/src/app/store/effects.ts @@ -104,8 +104,7 @@ export class AppEffects { map(({ systemConfig }) => AppActions.setHasConnectionSettings({ hasConnectionSettings: - systemConfig.network != null && - systemConfig.network.device_intf != null, + systemConfig.network != null && !!systemConfig.network.device_intf, }) ) );