Skip to content

Commit

Permalink
Sort failure reasons alphabetically.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsegura committed Oct 7, 2024
1 parent 6452410 commit 5383f7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/navigation/task/Complete.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const FailureReasonPicker = ({ task, httpClient, onValueChange }) => {
if (!isSuccess) {
return null;
}
return data['hydra:member'].map((value, index) => (
return _.sortBy(data['hydra:member'], ['description']).map((value, index) => (
<Picker.Item key={index} value={value.code} label={value.description} />
));
}, [data, isSuccess]);
Expand Down

0 comments on commit 5383f7b

Please sign in to comment.