Skip to content

Commit

Permalink
Replace filter()[0] with find() call
Browse files Browse the repository at this point in the history
  • Loading branch information
weltenwort committed Oct 15, 2019
1 parent f329127 commit 6e7f872
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ const getSetupStatus = (
}

const jobId = getJobId(spaceId, sourceId, jobType);
const jobDefinition = jobDefinitions.filter(({ id }) => id === jobType)[0];
const jobDefinition = jobDefinitions.find(({ id }) => id === jobType);

if (jobStatus === 'missing') {
return 'required';
Expand Down

0 comments on commit 6e7f872

Please sign in to comment.