Skip to content

Commit

Permalink
Fix filter
Browse files Browse the repository at this point in the history
  • Loading branch information
aldo-expensify committed Mar 25, 2024
1 parent 4902835 commit 4caf61a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/EditReportFieldPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function EditReportFieldPage({route, policy, report}: EditReportFieldPageProps)
fieldKey={fieldKey}
fieldName={Str.UCFirst(reportField.name)}
fieldValue={fieldValue}
fieldOptions={reportField.values.filter((value) => !(value in reportField.disabledOptions))}
fieldOptions={reportField.values.filter((_value: string, index: number) => !reportField.disabledOptions[index])}
onSubmit={handleReportFieldChange}
/>
);
Expand Down

0 comments on commit 4caf61a

Please sign in to comment.