diff --git a/front/src/modules/trainschedule/components/ManageTrainSchedule/Map.tsx b/front/src/modules/trainschedule/components/ManageTrainSchedule/Map.tsx index 30f6ecc474d..04eb54778b7 100644 --- a/front/src/modules/trainschedule/components/ManageTrainSchedule/Map.tsx +++ b/front/src/modules/trainschedule/components/ManageTrainSchedule/Map.tsx @@ -51,7 +51,7 @@ import { getMap, getTerrain3DExaggeration } from 'reducers/map/selectors'; import { useAppDispatch } from 'store'; import { getMapMouseEventNearestFeature } from 'utils/mapHelper'; -import OPERATIONAL_POINT_LAYERS from './Const'; +import OPERATIONAL_POINT_LAYERS from './consts'; import ItineraryLayer from './ManageTrainScheduleMap/ItineraryLayer'; import ItineraryMarkers, { type MarkerInformation, @@ -152,7 +152,7 @@ const Map = ({ const result = getMapMouseEventNearestFeature(e, { layersId: [ 'chartis/tracks-geo/main', - ...(layersSettings.operationalpoints ? OPERATIONAL_POINT_LAYERS : ''), + ...(layersSettings.operationalpoints ? OPERATIONAL_POINT_LAYERS : []), ], }); if (result && result.feature.properties && result.feature.properties.id) { @@ -172,7 +172,7 @@ const Map = ({ const result = getMapMouseEventNearestFeature(e, { layersId: [ 'chartis/tracks-geo/main', - ...(layersSettings.operationalpoints ? OPERATIONAL_POINT_LAYERS : ''), + ...(layersSettings.operationalpoints ? OPERATIONAL_POINT_LAYERS : []), ], }); if ( diff --git a/front/src/modules/trainschedule/components/ManageTrainSchedule/Const.ts b/front/src/modules/trainschedule/components/ManageTrainSchedule/consts.ts similarity index 100% rename from front/src/modules/trainschedule/components/ManageTrainSchedule/Const.ts rename to front/src/modules/trainschedule/components/ManageTrainSchedule/consts.ts