From 7867383f8e521892c5c930fd150f5c5ede81ec43 Mon Sep 17 00:00:00 2001 From: Calvin Lu <59149377+calvinlu3@users.noreply.github.com> Date: Fri, 4 Oct 2024 16:08:31 -0400 Subject: [PATCH] Fix data download (#1162) --- src/main/webapp/app/pages/apiAccessGroup/APIAccessPage.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/webapp/app/pages/apiAccessGroup/APIAccessPage.tsx b/src/main/webapp/app/pages/apiAccessGroup/APIAccessPage.tsx index 9f85be2ea..b913ff4b7 100644 --- a/src/main/webapp/app/pages/apiAccessGroup/APIAccessPage.tsx +++ b/src/main/webapp/app/pages/apiAccessGroup/APIAccessPage.tsx @@ -30,7 +30,6 @@ import AuthenticationStore from 'app/store/AuthenticationStore'; import { Linkout } from 'app/shared/links/Linkout'; import { If, Then, Else } from 'react-if'; import { getPageTitle } from 'app/shared/utils/Utils'; -import { has } from 'app/shared/utils/LodashUtils'; import { Helmet } from 'react-helmet-async'; type DownloadAvailabilityWithDate = DataRelease & DownloadAvailability; @@ -109,7 +108,7 @@ export default class APIAccessPage extends React.Component<{ // do not provide data on version 1 return DATA_RELEASES.filter( release => - has(availableVersions, release.version) && + availableVersions[release.version] && !release.version.startsWith('v1') ).reduce((acc, next) => { const currentVersionData: DownloadAvailability =