diff --git a/app/src/pages/MapContainer.tsx b/app/src/pages/MapContainer.tsx index 086f7aa6..7ed063ed 100644 --- a/app/src/pages/MapContainer.tsx +++ b/app/src/pages/MapContainer.tsx @@ -116,8 +116,8 @@ function MapContainer({ layers, map }: { layers: LayerProps[]; map: any }) { {layer.itemType.show_start_end && } {layer.itemType.show_profile_button && ( )} diff --git a/lib/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.tsx b/lib/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.tsx index 119262b5..918e7bed 100644 --- a/lib/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.tsx +++ b/lib/src/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.tsx @@ -1,5 +1,6 @@ /* eslint-disable @typescript-eslint/no-unnecessary-condition */ /* eslint-disable @typescript-eslint/restrict-template-expressions */ +import { get } from 'radash' import { Link } from 'react-router-dom' import { useGetItemTags } from '#components/Map/hooks/useTags' @@ -22,9 +23,10 @@ export const PopupButton = ({ }) => { const params = new URLSearchParams(window.location.search) const getItemTags = useGetItemTags() + const parameter = get(item, parameterField ?? 'id') return ( - +