Skip to content

Commit

Permalink
fix: Initial value report field is present which leads to blank page
Browse files Browse the repository at this point in the history
  • Loading branch information
nkdengineer committed Aug 7, 2024
1 parent de89479 commit ba37495
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function ReportFieldsSettingsPage({

const isDateFieldType = reportField.type === CONST.REPORT_FIELD_TYPES.DATE;
const isListFieldType = reportField.type === CONST.REPORT_FIELD_TYPES.LIST;
const isListFieldEmpty = isListFieldType && reportField.values.length <= 0;
const isListFieldEmpty = isListFieldType && reportField.disabledOptions.filter((disabledListValue) => !disabledListValue).length <= 0;

const deleteReportFieldAndHideModal = () => {
ReportField.deleteReportFields(policyID, [reportFieldKey]);
Expand Down

0 comments on commit ba37495

Please sign in to comment.