From 467f7c249b532b9b2f7f4d8c285b8cc9714e79eb Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Mon, 13 Oct 2025 14:37:33 +0200 Subject: [PATCH] fix linting --- lib/src/Components/Map/Subcomponents/SelectPositionToast.tsx | 2 +- lib/src/Components/Map/UtopiaMapInner.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/Components/Map/Subcomponents/SelectPositionToast.tsx b/lib/src/Components/Map/Subcomponents/SelectPositionToast.tsx index d10addaf..06f404ec 100644 --- a/lib/src/Components/Map/Subcomponents/SelectPositionToast.tsx +++ b/lib/src/Components/Map/Subcomponents/SelectPositionToast.tsx @@ -48,7 +48,7 @@ export const SelectPositionToast = ({ ? (selectNewItemPosition.layer?.markerIcon ?? selectNewItemPosition.markerIcon) : selectNewItemPosition.markerIcon const message = itemSelection - ? `Select the new position of ${selectNewItemPosition.name} on the map!` + ? `Select the new position of ${selectNewItemPosition.name ?? ''} on the map!` : 'Select the position on the map!' const dismissToast = () => { diff --git a/lib/src/Components/Map/UtopiaMapInner.tsx b/lib/src/Components/Map/UtopiaMapInner.tsx index 369cbd00..b25f9b13 100644 --- a/lib/src/Components/Map/UtopiaMapInner.tsx +++ b/lib/src/Components/Map/UtopiaMapInner.tsx @@ -43,9 +43,9 @@ import { SearchControl } from './Subcomponents/Controls/SearchControl' import { TagsControl } from './Subcomponents/Controls/TagsControl' import { TextView } from './Subcomponents/ItemPopupComponents/TextView' import { MapLibreLayer } from './Subcomponents/MapLibreLayer' +import { SelectPositionToast } from './Subcomponents/SelectPositionToast' import type { Feature, Geometry as GeoJSONGeometry, GeoJsonObject } from 'geojson' -import { SelectPositionToast } from './Subcomponents/SelectPositionToast' export function UtopiaMapInner({ children,