diff --git a/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/Stations.js b/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/Stations.js index 9ac310cc8d26db164a13ce67dbcce2257cad6582..448eeb568f2de0ee34fee6950afff81d6bf5133b 100644 --- a/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/Stations.js +++ b/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/Stations.js @@ -94,7 +94,7 @@ export default (props) => { stations: [...stationState['Custom'].stations, ...response.stations], }, }; - // Setting in Set to avoid duplicate, otherwise have to loop multiiple times. + // Setting in Set to avoid duplicate, otherwise have to loop multiple times. custom_Stations = new Set([...custom_Stations, ...response.stations]); }); // Find the custom one @@ -138,7 +138,7 @@ export default (props) => { custom_selected_options[index].error = false; } setCustomStations(custom_selected_options); - updateSchedulingComp(state, value, missing_StationFieldsErrors, custom_selected_options); + updateSchedulingComp(state, selectedStations, missing_StationFieldsErrors, custom_selected_options); }; /**