Skip to content

Commit

Permalink
feat: fix emerge bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Bosn committed Jul 21, 2020
1 parent 9efef03 commit d56809d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/editor/InterfaceSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class InterfaceSummary extends Component<
this.switchBodyOption = this.switchBodyOption.bind(this)
this.switchPos = this.switchPos.bind(this)
this.copyModelName = this.copyModelName.bind(this)
props.stateChangeHandler(this.state)
props.stateChangeHandler && props.stateChangeHandler(this.state)
}
switchBodyOption(val: BODY_OPTION) {
this.setState({ bodyOption: val },
Expand Down
1 change: 1 addition & 0 deletions src/components/editor/PropertyList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,7 @@ class PropertyList extends PureComponent<any, any> {
interfaceId,
scope,
parentId: parent.id,
pos: scope === 'request' ? this.props.posFilter : undefined,
}
this.setState({
highlightId: childId,
Expand Down

0 comments on commit d56809d

Please sign in to comment.