Skip to content

Commit

Permalink
Use the created api function availableReleases()
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierfacq committed Oct 19, 2023
1 parent 1a2265e commit 6ba1264
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Graph/Trends.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { Component } from 'react';
import { api } from '../api';
import { get } from '../utils';
import LineChart from './LineChart';
import BarChart from './BarChart';
import moment from 'moment';
Expand Down Expand Up @@ -95,7 +94,7 @@ export default class Trends extends Component<{}, State> {
await this.updateData(2, this.state.args2);
await this.updateMonthlyData(this.state.monthlyArgs);
this.setState({
versions: (await get('https://api.adoptium.net/v3/info/available_releases')).available_releases,
versions: (await api.availableReleases()).available_releases,
});
}

Expand Down

0 comments on commit 6ba1264

Please sign in to comment.