diff --git a/src/frontend/src/lib/components/monitoring/MonitoringDefaultStrategy.svelte b/src/frontend/src/lib/components/monitoring/MonitoringDefaultStrategy.svelte index 2633842c3..f4c81cc56 100644 --- a/src/frontend/src/lib/components/monitoring/MonitoringDefaultStrategy.svelte +++ b/src/frontend/src/lib/components/monitoring/MonitoringDefaultStrategy.svelte @@ -4,17 +4,19 @@ import MonitoringSentence from '$lib/components/modals/MonitoringSentence.svelte'; import Value from '$lib/components/ui/Value.svelte'; import { - missionControlMonitoring, - missionControlSettingsLoaded + missionControlConfigMonitoring, + missionControlUserDataLoaded } from '$lib/derived/mission-control.derived'; import { i18n } from '$lib/stores/i18n.store'; let monitoringStrategy = $derived( - fromNullable(fromNullable($missionControlMonitoring?.cycles ?? [])?.strategy ?? []) + fromNullable( + fromNullable($missionControlConfigMonitoring?.cycles ?? [])?.default_strategy ?? [] + ) ); -{#if $missionControlSettingsLoaded} +{#if $missionControlUserDataLoaded}
{#snippet label()} @@ -25,7 +27,7 @@ {#if nonNullish(monitoringStrategy)} {:else} - ​ + {$i18n.core.none} {/if}