Skip to content

Commit

Permalink
Modify reason list with deprecation check
Browse files Browse the repository at this point in the history
  • Loading branch information
wes-cutting committed Oct 25, 2023
1 parent 1028c93 commit 65324a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ fragment ExplanationOfProgressStep on ProgressReport {
ahead
behind
onTime
deprecated
}
reasons {
...SecuredStringList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,10 @@ export const ExplanationOfProgress: StepComponent = ({ report }) => {
<EnumField
name="reasons"
label="Select a reason"
options={optionsByGroup[group]}
required
options={optionsByGroup[group].filter(
(reason) => !optionsByGroup.deprecated.includes(reason)
)}
layout="column"
disabled={!explanation.reasons.canEdit}
/>
Expand Down

0 comments on commit 65324a2

Please sign in to comment.