From 8198eedf7838929b45e4d71897a81712f37ca118 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Mon, 10 Mar 2025 13:13:24 -0700 Subject: [PATCH] ui: Minor change with renaming a variable Tests: - In apps and system page, removing the last tag from search bar keeps the same page but without any filtering. Signed-off-by: Sunil Mohan Adapa --- static/tags.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/tags.js b/static/tags.js index 100164edc..782d8d46c 100644 --- a/static/tags.js +++ b/static/tags.js @@ -26,15 +26,15 @@ /** * Update the URL path based on the selected tags. * - * If no tags are selected, redirects to the base apps path. Otherwise, + * If no tags are selected, redirects to the base section path. Otherwise, * constructs a new URL with query parameters for each tag. * * @param {string[]} tags - An array of selected tag names. */ function updatePathWithTags(tags) { - const appsPath = window.location.pathname; + const sectionPath = window.location.pathname; if (tags.length === 0) { - this.location.assign(appsPath); + this.location.assign(sectionPath); } else { const urlParams = new URLSearchParams(); tags.forEach(tag => urlParams.append('tag', tag));