From 8c6c722222080fdb28766244c900d51bd1b91fec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bence=20Nagygy=C3=B6rgy?= Date: Mon, 2 Dec 2024 09:28:48 +0100 Subject: [PATCH] fix: invalid url --- web/crux-ui/src/routes.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/crux-ui/src/routes.ts b/web/crux-ui/src/routes.ts index 5d19386fe..1572ecfdd 100644 --- a/web/crux-ui/src/routes.ts +++ b/web/crux-ui/src/routes.ts @@ -123,6 +123,10 @@ const appendUrlParams = (url: string, params?: AnchorUrlParams): string => { } const urlQuery = (url: string, query: object) => { + if (!query) { + return url + } + const params = Object.entries(query) .map(it => { const [key, value] = it