From e2075a86af8d333f7225d178ae86e8f97429241a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Ign=C3=A1cio=20Fontoura=20Solla?= Date: Sun, 19 Jul 2026 17:14:23 -0300 Subject: [PATCH] Fix BahiaMap Leaflet style callback typing for pre-push typecheck. --- src/components/campaign/BahiaMap.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/campaign/BahiaMap.tsx b/src/components/campaign/BahiaMap.tsx index c03d62c6..f9f209cb 100644 --- a/src/components/campaign/BahiaMap.tsx +++ b/src/components/campaign/BahiaMap.tsx @@ -1,6 +1,7 @@ 'use client' import L from 'leaflet' +import type { Feature } from 'geojson' import { useEffect, useMemo, useRef, useState } from 'react' import 'leaflet/dist/leaflet.css' @@ -111,7 +112,7 @@ export const BahiaMap = ({ ) const layer = L.geoJSON([...geometryModule.features], { - style: (feature) => { + style: (feature?: Feature) => { const properties = feature?.properties as Record | undefined const key = featureKey(properties, keyProperty) const metric = key ? (values[key] ?? 0) : 0