From 4caf61ad062a0e141dc11e12ee5befaed73ae185 Mon Sep 17 00:00:00 2001 From: Aldo Canepa Date: Mon, 25 Mar 2024 12:51:31 -0700 Subject: [PATCH] Fix filter --- src/pages/EditReportFieldPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/EditReportFieldPage.tsx b/src/pages/EditReportFieldPage.tsx index 8c8376468c0f..72a472db3da0 100644 --- a/src/pages/EditReportFieldPage.tsx +++ b/src/pages/EditReportFieldPage.tsx @@ -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} /> );