Skip to content

Commit b64ab65

Browse files
committed
fix
1 parent 6f74039 commit b64ab65

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

front/src/modules/simulationResult/components/SpaceTimeChartWrapper/useTrackOccupancy.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ type DeployedWaypoint = {
4343
loading?: boolean;
4444
};
4545

46-
const NO_TRACK_SPECIFIED_ID = '__no_track_specified__';
4746
const NO_TRACK_SPECIFIED_SYMBOL = '[ ]';
4847

4948
// Extracts the first integer (including negative) from a string, or null if none is found
@@ -238,7 +237,7 @@ const useTrackOccupancy = ({
238237
const { local_track_name: localTrackName, trains } = trackItem;
239238
let trackId: string;
240239
if (!localTrackName) {
241-
trackId = NO_TRACK_SPECIFIED_ID;
240+
trackId = NO_TRACK_SPECIFIED_SYMBOL;
242241
} else {
243242
const mappedTrackId = waypointId
244243
? localTrackNameToTrackIdRef.current.get(waypointId)?.get(localTrackName)

0 commit comments

Comments
 (0)