Swap from params to 0, keeps old (#957)

This commit is contained in:
Jaco Greeff 2019-04-10 21:28:05 +02:00 committed by GitHub
parent 33591f9254
commit cb0cb73e0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,7 +166,7 @@ class Call extends React.PureComponent<Props, State> {
}
private onChangeMethod = (method: string | null): void => {
this.setState({ method });
this.setState({ method, params: [] });
}
private onChangeParams = (params: Array<any>): void => {