this.closeConnectionProject()

dev_forum
hjm 6 years ago
parent 399aef859c
commit 18d328a1fc

@ -23,7 +23,12 @@ class ConnectProject extends Component{
}
onSubmit = () => {
const { radioValue } = this.state;
const { radioValue, projects } = this.state;
if (projects.length === 0) {
this.closeConnectionProject()
return;
}
if (!radioValue) {
this.props.showNotification('请先在下面的列表中选择项目')
return;
@ -115,7 +120,7 @@ class ConnectProject extends Component{
>
<div className="newupload_conbox clearfix">
{
projects && projects.length &&
projects && !!projects.length &&
<div>
<Search placeholder="请输入项目名称进行搜索" className="with100"
value={this.state.keyword} onInput={(e) => {this.setState({keyword: e.target.value})}}

Loading…
Cancel
Save