We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3742d4d commit bcb2d02Copy full SHA for bcb2d02
src/Cell/index.tsx
@@ -11,7 +11,7 @@ import type {
11
AlignType,
12
CellEllipsisType,
13
} from '../interface';
14
-import { getPathValue } from '../utils/valueUtil';
+import { getPathValue, validateValue } from '../utils/valueUtil';
15
16
function isRenderCell<RecordType>(
17
data: React.ReactNode | RenderedCell<RecordType>,
@@ -97,7 +97,7 @@ function Cell<RecordType extends DefaultRecordType>(
97
let cellProps: CellType<RecordType>;
98
let childNode: React.ReactNode;
99
100
- if (children) {
+ if (validateValue(children)) {
101
childNode = children;
102
} else {
103
const value = getPathValue<object | React.ReactNode, RecordType>(record, dataIndex);
0 commit comments