diff --git a/frontend/src/metabase/query_builder/utils.ts b/frontend/src/metabase/query_builder/utils.ts index 60b8f1557ea5ab7465c4c3e286b6d72628f680c6..48b636782d05d45c03899cbbdaaec96b0c81a16d 100644 --- a/frontend/src/metabase/query_builder/utils.ts +++ b/frontend/src/metabase/query_builder/utils.ts @@ -30,7 +30,7 @@ export function getPathNameFromQueryBuilderMode({ export function getCurrentQueryParams() { const search = window.location.search.charAt(0) === "?" - ? window.location.search.slice(0) + ? window.location.search.slice(1) : window.location.search; return querystring.parse(search); }