From db6392f6df29f4a2da09580f67e15dfa09e3805c Mon Sep 17 00:00:00 2001 From: Luke Heath Date: Thu, 18 Aug 2022 09:03:35 -0500 Subject: [PATCH] Set MDM enrollment card sort by status (#7286) --- frontend/pages/Homepage/cards/MDM/MDM.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/pages/Homepage/cards/MDM/MDM.tsx b/frontend/pages/Homepage/cards/MDM/MDM.tsx index 33888c9069..e814482a06 100644 --- a/frontend/pages/Homepage/cards/MDM/MDM.tsx +++ b/frontend/pages/Homepage/cards/MDM/MDM.tsx @@ -29,7 +29,8 @@ interface IMDMCardProps { const DEFAULT_SORT_DIRECTION = "desc"; const SOLUTIONS_DEFAULT_SORT_HEADER = "hosts_count"; -const ENROLLMENT_DEFAULT_SORT_HEADER = "hosts"; +const ENROLLMENT_DEFAULT_SORT_DIRECTION = "asc"; +const ENROLLMENT_DEFAULT_SORT_HEADER = "status"; const PAGE_SIZE = 8; const baseClass = "home-mdm"; @@ -171,7 +172,7 @@ const MDM = ({ data={formattedMDMData} isLoading={isMDMFetching} defaultSortHeader={ENROLLMENT_DEFAULT_SORT_HEADER} - defaultSortDirection={DEFAULT_SORT_DIRECTION} + defaultSortDirection={ENROLLMENT_DEFAULT_SORT_DIRECTION} hideActionButton resultsTitle={"MDM"} emptyComponent={EmptyMDMEnrollment}