From 9662875ae4c7919718a05516491fe4371feb912c Mon Sep 17 00:00:00 2001 From: Kianna Quach Date: Wed, 6 Sep 2023 09:30:02 -0700 Subject: [PATCH 1/3] Fix filter/search bug for pki role --- ui/app/services/store.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/app/services/store.js b/ui/app/services/store.js index 91dac53f2d1a..5b7f0604d5bf 100644 --- a/ui/app/services/store.js +++ b/ui/app/services/store.js @@ -104,9 +104,10 @@ export default Store.extend({ filterData(filter, dataset) { 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()); }); } From 9d8dee384512e934dcbdf2a38a41a8f333c2c458 Mon Sep 17 00:00:00 2001 From: Kianna Quach Date: Wed, 6 Sep 2023 09:31:18 -0700 Subject: [PATCH 2/3] Remove extra space --- ui/app/services/store.js | 1 - 1 file changed, 1 deletion(-) diff --git a/ui/app/services/store.js b/ui/app/services/store.js index 5b7f0604d5bf..fb73fe32f724 100644 --- a/ui/app/services/store.js +++ b/ui/app/services/store.js @@ -104,7 +104,6 @@ export default Store.extend({ filterData(filter, dataset) { let newData = dataset || []; - if (filter) { newData = dataset.filter(function (item) { const id = item.id || item.name || item; From ff9ab4117b9e64683334cff9a38ad03380b5b749 Mon Sep 17 00:00:00 2001 From: Kianna Quach Date: Thu, 7 Sep 2023 10:16:09 -0700 Subject: [PATCH 3/3] Add changelog --- changelog/22810.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 changelog/22810.txt diff --git a/changelog/22810.txt b/changelog/22810.txt new file mode 100644 index 000000000000..bccc209e036c --- /dev/null +++ b/changelog/22810.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: Fixes old pki's filter and search roles page bug +```