From 4bb2d2f1c3f86f1d1856332675e95bf98aa4bf86 Mon Sep 17 00:00:00 2001 From: kurilova Date: Tue, 9 Jul 2024 14:56:37 +0000 Subject: [PATCH] Fix step 1 callout error --- modules/ui/src/app/store/effects.spec.ts | 2 +- modules/ui/src/app/store/effects.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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, }) ) );