Skip to content

Commit

Permalink
Revert rogue changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Haube committed Nov 6, 2023
1 parent 0eea36a commit a17c70a
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/services/ui/src/components/Opensearch/useOpensearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,8 @@ export const useOsAggregate = () => {
size: 10,
},
{
field:
user?.isCms &&
user.user?.["custom:cms-roles"].includes(UserRoles.HELPDESK)
? "cmsStatus.keyword"
: "stateStatus.keyword",
name:
user?.isCms &&
user.user?.["custom:cms-roles"].includes(UserRoles.HELPDESK)
? "cmsStatus.keyword"
: "stateStatus.keyword",
field: user?.isCms ? "cmsStatus.keyword" : "stateStatus.keyword",
name: user?.isCms ? "cmsStatus.keyword" : "stateStatus.keyword",
type: "terms",
size: 10,
},
Expand Down

0 comments on commit a17c70a

Please sign in to comment.