We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 196ef08 commit 8baab9dCopy full SHA for 8baab9d
ui/job-view/App.jsx
@@ -107,8 +107,9 @@ class App extends React.Component {
107
108
async componentDidMount() {
109
const { repoName, landoCommitID } = this.state;
110
- const { data } = await getData(getApiUrl(endpoints.frameworks));
111
- this.setState({ frameworks: data });
+ getData(getApiUrl(endpoints.frameworks)).then((response) =>
+ this.setState({ frameworks: response.data }),
112
+ );
113
114
RepositoryModel.getList().then((repos) => {
115
const newRepo = repos.find((repo) => repo.name === repoName);
0 commit comments