Skip to content

Commit

Permalink
front: fix stdcm speedlimitbytag reset
Browse files Browse the repository at this point in the history
Signed-off-by: Theo Macron <[email protected]>
  • Loading branch information
Akctarus committed Nov 22, 2024
1 parent e32c89b commit 83706cb
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,11 @@ const StdcmConsist = ({ disabled = false }: StdcmConfigCardProps) => {
searchRollingStock(e.target.value);
if (e.target.value.trim().length === 0) {
dispatch(updateRollingStockID(undefined));
dispatchUpdateSpeedLimitByTag(null);
}
};

const onSelectSuggestion = (option?: LightRollingStockWithLiveries) => {
dispatch(updateRollingStockID(option?.id));
dispatchUpdateSpeedLimitByTag(null);
};

useEffect(() => {
Expand Down

0 comments on commit 83706cb

Please sign in to comment.