Skip to content

Commit

Permalink
fix the problem when region is empty. (#1148)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alice1319 committed Sep 13, 2024
1 parent 7cc755c commit d2eafb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/content/common/ocl/RegionText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const columns: TableProps<GroupedRegionItem>['columns'] = [
];

export function RegionText({ regions }: { regions: Region[] }): React.JSX.Element {
if (regions.length > 1) {
if (regions.length > 0) {
const groupedByAreaRegions = groupedRegions(regions);
return (
<div className={regionStyle.regionList}>
Expand Down

0 comments on commit d2eafb7

Please sign in to comment.