From 32f29024f87af8b46496c4da81d5d332d6cdecbc Mon Sep 17 00:00:00 2001 From: William Lima Date: Tue, 18 Jun 2024 22:05:41 -0100 Subject: [PATCH] attr replace fix --- packages/components/src/components/Map.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/components/src/components/Map.tsx b/packages/components/src/components/Map.tsx index 9bbc099d..0cd62133 100644 --- a/packages/components/src/components/Map.tsx +++ b/packages/components/src/components/Map.tsx @@ -159,7 +159,8 @@ export function Map({ } return attr.replace( /\{attribution.(\w*)\}/g, - function (match, attributionName) { + function (match: any, attributionName: string) { + match; return attributionReplacer( providers[attributionName].options.attribution );