Skip to content

Commit 7867383

Browse files
authored
Fix data download (#1162)
1 parent d118700 commit 7867383

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/webapp/app/pages/apiAccessGroup/APIAccessPage.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import AuthenticationStore from 'app/store/AuthenticationStore';
3030
import { Linkout } from 'app/shared/links/Linkout';
3131
import { If, Then, Else } from 'react-if';
3232
import { getPageTitle } from 'app/shared/utils/Utils';
33-
import { has } from 'app/shared/utils/LodashUtils';
3433
import { Helmet } from 'react-helmet-async';
3534

3635
type DownloadAvailabilityWithDate = DataRelease & DownloadAvailability;
@@ -109,7 +108,7 @@ export default class APIAccessPage extends React.Component<{
109108
// do not provide data on version 1
110109
return DATA_RELEASES.filter(
111110
release =>
112-
has(availableVersions, release.version) &&
111+
availableVersions[release.version] &&
113112
!release.version.startsWith('v1')
114113
).reduce((acc, next) => {
115114
const currentVersionData: DownloadAvailability =

0 commit comments

Comments
 (0)