Skip to content

Commit d7ef99a

Browse files
committed
fix: Array is also validate ReactNode
1 parent 295b00a commit d7ef99a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cell/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { getPathValue } from '../utils/valueUtil';
1515
function isRenderCell<RecordType>(
1616
data: React.ReactNode | RenderedCell<RecordType>,
1717
): data is RenderedCell<RecordType> {
18-
return data && typeof data === 'object' && !React.isValidElement(data);
18+
return data && typeof data === 'object' && !Array.isArray(data) && !React.isValidElement(data);
1919
}
2020

2121
function isRefComponent(component: CustomizeComponent) {

0 commit comments

Comments
 (0)