From f9ea5444b078f4238914d892dbd071d371900101 Mon Sep 17 00:00:00 2001 From: Artur Pata Date: Tue, 6 Aug 2024 19:39:29 +0300 Subject: [PATCH] Fix legacy compatibility redirect (#4424) --- assets/js/dashboard/query.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/assets/js/dashboard/query.js b/assets/js/dashboard/query.js index 354aeac4d9..23b9ecb34e 100644 --- a/assets/js/dashboard/query.js +++ b/assets/js/dashboard/query.js @@ -107,7 +107,6 @@ export function filtersBackwardsCompatibilityRedirect(windowLocation, windowHist if (LEGACY_URL_PARAMETERS.hasOwnProperty(key)) { const filter = parseLegacyFilter(key, value) filters.push(filter) - const labelsKey = LEGACY_URL_PARAMETERS[key] if (labelsKey && getValue(labelsKey)) { const clauses = filter[2] @@ -126,7 +125,7 @@ export function filtersBackwardsCompatibilityRedirect(windowLocation, windowHist } if (filters.length > 0) { - changedSearchRecordEntries.push([['filters', filters], ['labels', labels]]) + changedSearchRecordEntries.push(['filters', filters], ['labels', labels]) windowHistory.pushState({}, null, `${windowLocation.pathname}${stringifySearch(Object.fromEntries(changedSearchRecordEntries))}`) } }