fix: 修复 nav 没有 onOrderChange 属性会报错问题 (#3940)

This commit is contained in:
吴多益 2022-04-01 16:34:06 +08:00 committed by GitHub
parent e35a380027
commit 5a018a863c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -858,7 +858,7 @@ const ConditionBuilderWithRemoteOptions = withRemoteConfig({
}
}
this.props.updateConfig(links, 'update');
this.props.onOrderChange!(links);
this.props.onOrderChange?.(links);
await this.saveOrder(
mapTree(links, (link: Link) => {
// 清除内部加的字段