diff --git a/client/homebrew/homebrew.jsx b/client/homebrew/homebrew.jsx index e509b1fa4..ff5c06b33 100644 --- a/client/homebrew/homebrew.jsx +++ b/client/homebrew/homebrew.jsx @@ -14,13 +14,17 @@ const PrintPage = require('./pages/printPage/printPage.jsx'); const WithRoute = (props)=>{ const params = useParams(); - const searchParams = useSearchParams(); + const [searchParams] = useSearchParams(); + const queryParams = {}; + for (const [key, value] of searchParams?.entries() || []) { + queryParams[key] = value; + } const Element = props.el; const allProps = { ...props, ...params, - ...searchParams, - el : undefined + query : queryParams, + el : undefined }; return ; };