Skip to content

Commit

Permalink
Ensure op mode name for logging does not get overwritten by $Stop$Rob…
Browse files Browse the repository at this point in the history
…ot (#158)
  • Loading branch information
monkbroc authored Nov 7, 2024
1 parent c05ae37 commit e6a4830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/views/LoggingView/LoggingView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ const LoggingView = ({
}, [activeOpMode, activeOpModeStatus, isRecording, opModeList, telemetry]);

useEffect(() => {
if (activeOpModeStatus === OpModeStatus.RUNNING) {
if (activeOpModeStatus === OpModeStatus.RUNNING && activeOpMode !== STOP_OP_MODE_TAG) {
setCurrentOpModeName(activeOpMode ?? '');
}
}, [activeOpMode, activeOpModeStatus]);
Expand Down

0 comments on commit e6a4830

Please sign in to comment.