修复Table报错 (#1452)

This commit is contained in:
RickCole 2021-01-27 10:21:33 +08:00 committed by GitHub
parent 54cd658860
commit 02250cd033
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -581,7 +581,7 @@ export default class Table extends React.Component<TableProps, object> {
quickEditFormRef && quickEditFormRef(form, x, y);
this.subForms[`${x}-${y}`] = form;
this.props.store.addForm(form.props.store, y);
form && this.props.store.addForm(form.props.store, y);
}
handleAction(e: React.UIEvent<any>, action: Action, ctx: object) {