From feead7301c522bbb35293e501fb4bdf9330a4ea0 Mon Sep 17 00:00:00 2001 From: John Duprey Date: Wed, 24 Apr 2024 19:18:28 -0400 Subject: [PATCH] Update standard list on home page --- src/views/home/Home.jsx | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/src/views/home/Home.jsx b/src/views/home/Home.jsx index e667c9fc0cbd..d68e0b5b1c47 100644 --- a/src/views/home/Home.jsx +++ b/src/views/home/Home.jsx @@ -81,7 +81,7 @@ const Home = () => { isFetching: isFetchingStandards, } = useGenericGetRequestQuery({ path: '/api/ListStandards', - params: {}, + params: { ShowConsolidated: true, TenantFilter: currentTenant.defaultDomainName }, }) const { @@ -144,18 +144,9 @@ const Home = () => { ] const filteredStandards = standards - .filter( - (p) => p.displayName === 'AllTenants' || p.displayName === currentTenant.defaultDomainName, - ) - .flatMap((tenant) => { - return Object.keys(tenant.standards).map((standard, idx) => { - const standardDisplayname = allStandardsList.filter((p) => p.name.includes(standard)) - return ( -
  • - {standardDisplayname[0]?.label} ({tenant.displayName}) -
  • - ) - }) + ?.filter((p) => p.Settings.remediate === true) + .map((standard, idx) => { + return
  • {standard.Standard}
  • }) return ( <>