fix(amis-editor): 接口适配器输入时不自动对其进行折叠隐藏

This commit is contained in:
wibetter 2023-05-25 20:57:47 +08:00
parent 5315a355c4
commit 3f1b1117b5

View File

@ -64,14 +64,6 @@ export default class APIAdaptorControl extends React.Component<
};
}
componentDidUpdate(prevProps: Readonly<APIAdaptorControlProps>): void {
if (this.props.value !== prevProps.value) {
this.setState({
switch: !!this.props.value
});
}
}
@autobind
onChange(value: any = '') {
this.props.onChange?.(value);