Skip to content

Commit

Permalink
fix(editor): 组件属性表单配置默认值
Browse files Browse the repository at this point in the history
  • Loading branch information
roymondchen authored and jia000 committed Aug 24, 2022
1 parent 98bc4e2 commit 5529bbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/services/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Props extends BaseService {
return await this.getPropsConfig('button');
}

return cloneDeep(this.state.propsConfigMap[type] || this.fillConfig([]));
return cloneDeep(this.state.propsConfigMap[type] || (await this.fillConfig([])));
}

public setPropsValues(values: Record<string, MNode>) {
Expand Down

0 comments on commit 5529bbc

Please sign in to comment.