Skip to content

Commit

Permalink
RANGER-4656: Filtering the resources in the search filter options on …
Browse files Browse the repository at this point in the history
…the policy listing page based on policy type.

Signed-off-by: Mehul Parikh <[email protected]>
  • Loading branch information
Brijesh619 authored and mehulbparikh committed Jan 30, 2024
1 parent 43cb907 commit 9dcb210
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,10 @@ function PolicyListing(props) {
let currentServiceDef = serviceDef;

if (currentServiceDef !== undefined) {
let serviceDefResource = currentServiceDef.resources;
let serviceDefResource = getResourcesDefVal(
currentServiceDef,
policyType
);

let serviceDefResourceOption = serviceDefResource?.map((obj) => ({
category: "resource:" + obj.name,
Expand Down

0 comments on commit 9dcb210

Please sign in to comment.