From 083ba00db9bd5f05f1fc1449697a9974904d2524 Mon Sep 17 00:00:00 2001 From: Valentin Chanas Date: Wed, 23 Oct 2024 17:11:14 +0200 Subject: [PATCH] front: fix scenario explorer update stdcm environment Selecting a new scenario in debug interface no longer removes the work schedule group id. Now also uses the electrical profile set from the scenario --- .../scenario/components/ScenarioExplorer/ScenarioExplorer.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/front/src/modules/scenario/components/ScenarioExplorer/ScenarioExplorer.tsx b/front/src/modules/scenario/components/ScenarioExplorer/ScenarioExplorer.tsx index 810c7d9303e..4e127f72d7c 100644 --- a/front/src/modules/scenario/components/ScenarioExplorer/ScenarioExplorer.tsx +++ b/front/src/modules/scenario/components/ScenarioExplorer/ScenarioExplorer.tsx @@ -97,8 +97,7 @@ const ScenarioExplorer = ({ updateStdcmEnvironment({ infraID: scenario.infra_id, timetableID: scenario.timetable_id, - electricalProfileSetId: undefined, - workScheduleGroupId: undefined, + electricalProfileSetId: scenario.electrical_profile_set_id, searchDatetimeWindow: scenarioDateTimeWindow, }) );