fix incorrect var name
All checks were successful
CI / Maven unit tests (push) Successful in 14s
CI / Build and push images (push) Has been skipped
CI / Deploy to server (push) Has been skipped

This commit is contained in:
2026-08-02 17:18:52 +01:00
parent eab3f8be20
commit 9630565aee
3 changed files with 10 additions and 13 deletions

View File

@@ -62,7 +62,7 @@ const StreamControl = () => {
const [jobs, setJobs] = useState<TrackedJob[]>([]);
const isStreaming = streamStatus?.isStreaming ?? false;
const startMs = streamStatus?.startDate ? stringToDate(streamStatus.startDate).getTime() : null;
const startMs = streamStatus?.startTime ? stringToDate(streamStatus.startTime).getTime() : null;
const elapsedSeconds = startMs === null ? 0 : Math.max(0, (now - startMs) / 1000);
const elapsed = formatTimecode(elapsedSeconds);
@@ -127,12 +127,10 @@ const StreamControl = () => {
const offsetOf = (marker: Marker) =>
startMs === null ? 0 : (stringToDate(marker.timestamp).getTime() - startMs) / 1000;
// Ticking two markers fills the range. Done here rather than in an effect so a
// marker poll can't stomp on timecodes the user has since typed over.
const toggleMarker = (id: number) => {
const next = selected.includes(id)
? selected.filter((current) => current !== id)
// Third tick replaces the older of the two.
: selected.length < 2 ? [...selected, id] : [selected[1], id];
setSelected(next);
@@ -173,8 +171,6 @@ const StreamControl = () => {
setMarkerBusy(true);
setMarkerError(null);
try {
// Dropping first and naming later isn't possible — markers have no PATCH —
// so an unnamed marker keeps the timecode it landed on.
await createMarker(markerMessage.trim() || `Marker at ${elapsed}`);
setMarkerMessage("");
refreshMarkers();