ui: searchview change should only remove related query params (#11576)

This commit is contained in:
Abhishek Kumar 2025-09-15 13:31:02 +05:30 committed by GitHub
parent 2cd7d8a315
commit 7c76a3c12a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1821,9 +1821,8 @@ export default {
}, },
onSearch (opts) { onSearch (opts) {
const query = Object.assign({}, this.$route.query) const query = Object.assign({}, this.$route.query)
for (const key in this.searchParams) { const searchFilters = this.$route?.meta?.searchFilters || []
delete query[key] searchFilters.forEach(key => delete query[key])
}
delete query.name delete query.name
delete query.templatetype delete query.templatetype
delete query.keyword delete query.keyword