diff --git a/src/components/editor/InterfaceSummary.tsx b/src/components/editor/InterfaceSummary.tsx index 2976c69..2a72377 100644 --- a/src/components/editor/InterfaceSummary.tsx +++ b/src/components/editor/InterfaceSummary.tsx @@ -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 }, diff --git a/src/components/editor/PropertyList.tsx b/src/components/editor/PropertyList.tsx index fda053d..58680b0 100644 --- a/src/components/editor/PropertyList.tsx +++ b/src/components/editor/PropertyList.tsx @@ -628,6 +628,7 @@ class PropertyList extends PureComponent { interfaceId, scope, parentId: parent.id, + pos: scope === 'request' ? this.props.posFilter : undefined, } this.setState({ highlightId: childId,