From f8549656cbfcab501b76622419acef7d2ef93ea8 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Thu, 4 Sep 2025 14:42:52 +0530 Subject: [PATCH] ui: searchview change should only remove related query params Prevents removing all query params when there is a change from SearchView element. Signed-off-by: Abhishek Kumar --- ui/src/views/AutogenView.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue index e2d99096b157..2fecc012aeab 100644 --- a/ui/src/views/AutogenView.vue +++ b/ui/src/views/AutogenView.vue @@ -1819,9 +1819,8 @@ export default { }, onSearch (opts) { const query = Object.assign({}, this.$route.query) - for (const key in this.searchParams) { - delete query[key] - } + const searchFilters = this.$route?.meta?.searchFilters || [] + searchFilters.forEach(key => delete query[key]) delete query.name delete query.templatetype delete query.keyword