diff --git a/src/pages/EditReportFieldDropdown.tsx b/src/pages/EditReportFieldDropdown.tsx index ea2a3d489406..ba6828eca782 100644 --- a/src/pages/EditReportFieldDropdown.tsx +++ b/src/pages/EditReportFieldDropdown.tsx @@ -62,7 +62,7 @@ function EditReportFieldDropdownPage({onSubmit, fieldKey, fieldValue, fieldOptio ); const [sections, headerMessage] = useMemo(() => { - const validFieldOptions = fieldOptions?.filter((option) => !!option).sort(localeCompare); + const validFieldOptions = fieldOptions?.filter((option) => !!option)?.sort(localeCompare); const {policyReportFieldOptions} = OptionsListUtils.getFilteredOptions( [],