diff --git a/src/components/details.page.tsx b/src/components/details.page.tsx
index ac750f5..2111a09 100644
--- a/src/components/details.page.tsx
+++ b/src/components/details.page.tsx
@@ -36,7 +36,7 @@ export default function DetailsPageUI({ content }: Props) {
{content.attachments.length > 0 && (
{
- if (hasDetails) {
+ ...(hasDetails && {
+ click: () => {
router.push(
`/map/${layer?.type}/${properties?.id}?${params.toString()}`,
);
- }
- },
+ },
+ }),
};
if (geometry.type === 'Point' || geometry.type === 'MultiPoint') {
@@ -118,7 +118,10 @@ export const GeometryItem = ({
mouseout: e => e.target.setStyle({ opacity: 0 }),
...featureEventHandler,
}}
- className={`streams-hover ${pointerClassName}`}
+ className={cn(
+ 'streams-hover',
+ !hasDetails && '!cursor-[unset]',
+ )}
>
@@ -129,7 +132,7 @@ export const GeometryItem = ({
[lng, lat])}
pathOptions={options.style as GeoJSONOptions}
- className={`${layer.type} ${pointerClassName}`}
+ className={cn(layer.type, !hasDetails && '!cursor-[unset]')}
eventHandlers={featureEventHandler}
>
@@ -163,7 +166,10 @@ export const GeometryItem = ({
}),
...featureEventHandler,
}}
- className={`transition-[fill-opacity] ${pointerClassName}`}
+ className={cn(
+ 'transition-[fill-opacity]',
+ !hasDetails && '!cursor-[unset]',
+ )}
pane="tilePane"
>
diff --git a/src/components/metadata-list.tsx b/src/components/metadata-list.tsx
index c779e78..20ce88b 100644
--- a/src/components/metadata-list.tsx
+++ b/src/components/metadata-list.tsx
@@ -1,6 +1,7 @@
import Image from 'next/image';
import { useTranslations } from 'next-intl';
+import { cn } from '@/lib/utils';
import { Badge } from '@/components/ui/badge';
import { Icon, Icons, propsForSVGPresentation } from '@/components/icons';
@@ -44,13 +45,12 @@ const MetadataItem = ({
{t(type)}
- {meters ? : value}
+ {meters !== undefined ? : value}
);
};