Skip to content

Commit

Permalink
Fix label error
Browse files Browse the repository at this point in the history
  • Loading branch information
filip-solecki committed Jan 19, 2024
1 parent a79485c commit 15f349a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/SelectionList/BaseSelectionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import useThemeStyles from '@hooks/useThemeStyles';
import Log from '@libs/Log';
import variables from '@styles/variables';
import CONST from '@src/CONST';
import {isEmptyObject} from '@src/types/utils/EmptyObject';
import BaseListItem from './BaseListItem';
import type {BaseSelectionListProps, ButtonOrCheckBoxRoles, FlattenedSectionsReturn, RadioItem, Section, SectionListDataType, User} from './types';

Expand Down Expand Up @@ -272,7 +273,7 @@ function BaseSelectionList<TItem extends User | RadioItem>(
};

const renderSectionHeader = ({section}: {section: SectionListDataType<TItem>}) => {
if (!section.title || !section.data) {
if (!section.title || isEmptyObject(section.data)) {
return null;
}

Expand Down

0 comments on commit 15f349a

Please sign in to comment.