Avoid sending join when the channels input is empty
This commit is contained in:
parent
0d9290d037
commit
6aaa2b521d
File diff suppressed because one or more lines are too long
@ -195,7 +195,7 @@ export default withFormik({
|
|||||||
},
|
},
|
||||||
handleSubmit: (values, { props }) => {
|
handleSubmit: (values, { props }) => {
|
||||||
const { connect, select, join } = props;
|
const { connect, select, join } = props;
|
||||||
const channels = values.channels.split(',');
|
const channels = values.channels ? values.channels.split(',') : [];
|
||||||
delete values.channels;
|
delete values.channels;
|
||||||
|
|
||||||
values.port = `${values.port}`;
|
values.port = `${values.port}`;
|
||||||
|
Loading…
Reference in New Issue
Block a user