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 4e8131f commit f15d9d4Copy full SHA for f15d9d4
ui/job-view/details/DetailsPanel.jsx
@@ -95,10 +95,10 @@ class DetailsPanel extends React.Component {
95
96
updateClassifications = async () => {
97
const { selectedJob } = this.props;
98
- const classifications = await JobClassificationModel.getList({
99
- job_id: selectedJob.id,
100
- });
101
- const bugs = await BugJobMapModel.getList({ job_id: selectedJob.id });
+ const [classifications, bugs] = await Promise.all([
+ JobClassificationModel.getList({ job_id: selectedJob.id }),
+ BugJobMapModel.getList({ job_id: selectedJob.id }),
+ ]);
102
103
this.setState({ classifications, bugs });
104
};
0 commit comments