Skip to content

Commit 6c9de71

Browse files
committed
fix: table warning #1267
1 parent ef16772 commit 6c9de71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/table/Table.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default {
8787
// this.columns = props.columns || normalizeColumns(props.children)
8888
const props = getOptionProps(this);
8989
warning(
90-
!('expandedRowRender' in props) || !('scroll' in props),
90+
!props.expandedRowRender || !('scroll' in props),
9191
'`expandedRowRender` and `scroll` are not compatible. Please use one of them at one time.',
9292
);
9393
this.createComponents(this.components);

0 commit comments

Comments
 (0)