Skip to content

Commit 4a6b733

Browse files
authored
CTable put 0 data in but not add
CTable put 0 data in but not add
1 parent 19415b9 commit 4a6b733

File tree

1 file changed

+1
-1
lines changed
  • packages/coreui-react/src/components/table

1 file changed

+1
-1
lines changed

packages/coreui-react/src/components/table/CTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export const CTable = forwardRef<HTMLTableElement, CTableProps>(
201201
<CTableRow {...(item._props && { ...item._props })} key={index}>
202202
{columnNames &&
203203
columnNames.map((colName: string, index: number) => {
204-
return item[colName] ? (
204+
return item[colName] !== undefined && item[colName] !== null ? (
205205
<CTableDataCell
206206
{...(item._cellProps && {
207207
...(item._cellProps['all'] && { ...item._cellProps['all'] }),

0 commit comments

Comments
 (0)