From eed958f8bc5ab20a95be424e64963b76b0c7dfe7 Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Sat, 20 Jul 2024 12:29:30 +0200 Subject: [PATCH] added url params to links --- .../Map/Subcomponents/ItemPopupComponents/HeaderView.tsx | 3 ++- src/Components/Profile/OverlayItemProfileSettings.tsx | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.tsx b/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.tsx index 13a2016b..d8e90ba0 100644 --- a/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.tsx +++ b/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.tsx @@ -41,6 +41,7 @@ export function HeaderView({ item, api, editCallback, deleteCallback, setPositio const [address, setAdress] = React.useState(""); + let params = new URLSearchParams(window.location.search); const openDeleteModal = async (event: React.MouseEvent) => { @@ -91,7 +92,7 @@ export function HeaderView({ item, api, editCallback, deleteCallback, setPositio