addHook 做个判断

This commit is contained in:
2betop 2019-12-31 15:04:51 +08:00
parent 7e12c10494
commit e19e78cb26
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ export default class ComboControl extends React.Component<ComboProps> {
});
formItem && formItem.setSubStore(store);
this.toDispose.push(addHook(this.flush, 'flush'));
addHook && this.toDispose.push(addHook(this.flush, 'flush'));
}
componentWillReceiveProps(nextProps: ComboProps) {