Skip to content

Commit bcb2d02

Browse files
author
Wendell
authored
fix: fix header content not rendered (#632)
1 parent 3742d4d commit bcb2d02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Cell/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import type {
1111
AlignType,
1212
CellEllipsisType,
1313
} from '../interface';
14-
import { getPathValue } from '../utils/valueUtil';
14+
import { getPathValue, validateValue } from '../utils/valueUtil';
1515

1616
function isRenderCell<RecordType>(
1717
data: React.ReactNode | RenderedCell<RecordType>,
@@ -97,7 +97,7 @@ function Cell<RecordType extends DefaultRecordType>(
9797
let cellProps: CellType<RecordType>;
9898
let childNode: React.ReactNode;
9999

100-
if (children) {
100+
if (validateValue(children)) {
101101
childNode = children;
102102
} else {
103103
const value = getPathValue<object | React.ReactNode, RecordType>(record, dataIndex);

0 commit comments

Comments
 (0)