Backport of UI: [VAULT-18178] Fix filter/search bug in search secrets engines into release/1.14.x (#23130)

Co-authored-by: Kianna <30884335+kiannaquach@users.noreply.github.com>
This commit is contained in:
hc-github-team-secure-vault-core 2023-09-18 13:59:01 -04:00 committed by GitHub
parent 34b2650ad7
commit bf9114d772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

3
changelog/23123.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
ui: Fixes filter and search bug in secrets engines
```

View File

@ -111,7 +111,7 @@ export default Store.extend({
let newData = dataset || []; let newData = dataset || [];
if (filter) { if (filter) {
newData = dataset.filter(function (item) { newData = dataset.filter(function (item) {
const id = item.id || item; const id = item.id || item.name || item;
return id.toLowerCase().includes(filter.toLowerCase()); return id.toLowerCase().includes(filter.toLowerCase());
}); });
} }