Skip to content

Commit f15d9d4

Browse files
authored
Perform the /note/ and /bug-job-map/ network requests in parallel when selecting a job. (#8874)
1 parent 4e8131f commit f15d9d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ui/job-view/details/DetailsPanel.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ class DetailsPanel extends React.Component {
9595

9696
updateClassifications = async () => {
9797
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 });
98+
const [classifications, bugs] = await Promise.all([
99+
JobClassificationModel.getList({ job_id: selectedJob.id }),
100+
BugJobMapModel.getList({ job_id: selectedJob.id }),
101+
]);
102102

103103
this.setState({ classifications, bugs });
104104
};

0 commit comments

Comments
 (0)