From bf9114d77270abbf33db72b1bc8a356cb34ee171 Mon Sep 17 00:00:00 2001 From: hc-github-team-secure-vault-core <82990506+hc-github-team-secure-vault-core@users.noreply.github.com> Date: Mon, 18 Sep 2023 13:59:01 -0400 Subject: [PATCH] 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> --- changelog/23123.txt | 3 +++ ui/app/services/store.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelog/23123.txt diff --git a/changelog/23123.txt b/changelog/23123.txt new file mode 100644 index 000000000..4bfc0c0e7 --- /dev/null +++ b/changelog/23123.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: Fixes filter and search bug in secrets engines +``` diff --git a/ui/app/services/store.js b/ui/app/services/store.js index 5d0579fac..57de62541 100644 --- a/ui/app/services/store.js +++ b/ui/app/services/store.js @@ -111,7 +111,7 @@ export default Store.extend({ let newData = dataset || []; if (filter) { newData = dataset.filter(function (item) { - const id = item.id || item; + const id = item.id || item.name || item; return id.toLowerCase().includes(filter.toLowerCase()); }); }