Skip to content

Commit 8baab9d

Browse files
authored
Do not await the /api/performance/framework/ when loading the treeherder main view. (#8880)
1 parent 196ef08 commit 8baab9d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ui/job-view/App.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,9 @@ class App extends React.Component {
107107

108108
async componentDidMount() {
109109
const { repoName, landoCommitID } = this.state;
110-
const { data } = await getData(getApiUrl(endpoints.frameworks));
111-
this.setState({ frameworks: data });
110+
getData(getApiUrl(endpoints.frameworks)).then((response) =>
111+
this.setState({ frameworks: response.data }),
112+
);
112113

113114
RepositoryModel.getList().then((repos) => {
114115
const newRepo = repos.find((repo) => repo.name === repoName);

0 commit comments

Comments
 (0)