From d56809d2b298a40c5f3011843ccd806630d7f8cd Mon Sep 17 00:00:00 2001 From: "huoyong.msb" Date: Tue, 21 Jul 2020 19:07:54 +0800 Subject: [PATCH] feat: fix emerge bug --- src/components/editor/InterfaceSummary.tsx | 2 +- src/components/editor/PropertyList.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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,