Skip to content

Commit

Permalink
Rename 'GLOBAL' label to 'ALL' in policies list
Browse files Browse the repository at this point in the history
  • Loading branch information
Piumal1999 committed Feb 27, 2025
1 parent d78599d commit 14f774e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default function ListPolicies() {
const policiesWithLabels = allPolicies.map((policy) => ({
...policy,
labels: policy.labels.map((labelId) => {
if (labelId === 'GLOBAL') return labelId;
if (labelId === 'GLOBAL') return 'ALL';
const label = labelsList.find((l) => l.id === labelId);
return label ? label.name : labelId;
}),
Expand Down

0 comments on commit 14f774e

Please sign in to comment.