From 2365b9f6207fee1f2b0179d2bce4e0dbf2b0792c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20Ioni=C8=9B=C4=83?= Date: Thu, 7 Nov 2024 14:37:36 +0000 Subject: [PATCH] fix: closePanel --- resources/js/Helpers/useMap.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/resources/js/Helpers/useMap.js b/resources/js/Helpers/useMap.js index b337590..7d51abf 100644 --- a/resources/js/Helpers/useMap.js +++ b/resources/js/Helpers/useMap.js @@ -71,9 +71,7 @@ export const closePanel = (leafletObject) => { const coordinates = getCoordinatesParameter(props.center, props.zoom); router.visit(route('front.map.index', { coordinates }), { - headers: { - 'Map-Bounds': props.bounds, - }, + headers: headers(leafletObject), }); };