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