From a6fe079ec8031fa9ae93626ae70cf27323138a2f Mon Sep 17 00:00:00 2001 From: regeter <2320305+regeter@users.noreply.github.com> Date: Thu, 7 Aug 2025 23:35:08 +0200 Subject: [PATCH] fix(map): Ensure map centering callback executes correctly --- src/Map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Map.js b/src/Map.js index 4bdd35ae..82455998 100644 --- a/src/Map.js +++ b/src/Map.js @@ -466,7 +466,7 @@ function MapComponent({ } }; if (setCenterOnLocation) { - setCenterOnLocation(() => centerOnLocationImpl); + setCenterOnLocation(centerOnLocationImpl); } }, [setCenterOnLocation]);