From e66168660aa5e0a6f48621dd1e339d3a93c56a0b Mon Sep 17 00:00:00 2001 From: Corwin Smith Date: Mon, 12 Dec 2022 13:46:11 -0700 Subject: [PATCH] linux stables build --- src/components/UI/DataTable.tsx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/components/UI/DataTable.tsx b/src/components/UI/DataTable.tsx index 3798a4b08d..bc0452b96b 100644 --- a/src/components/UI/DataTable.tsx +++ b/src/components/UI/DataTable.tsx @@ -85,15 +85,10 @@ export const DataTable: FC = ({ columnHeaders, data }) => { const isLatestStableLinuxRelease = os === 'linux' && data + .slice(0, 12) // get latest build to filter on .filter( (e: ReleaseData) => e.arch === '64-bit' && !e.release.url.includes('unstable') - ) - .every((elem: ReleaseData) => { - console.log('release:', r); - console.log('elem:', elem); - - return new Date(r.published) >= new Date(elem.published); - }); + ).includes(r) const x = data.filter((e: ReleaseData, _: any, array: any) => { const maxDate = array