|
|
@ -74,7 +74,7 @@ class InfosTopics extends Component{
|
|
|
|
isSpin:true
|
|
|
|
isSpin:true
|
|
|
|
})
|
|
|
|
})
|
|
|
|
let types=this.props.match.params.topicstype;
|
|
|
|
let types=this.props.match.params.topicstype;
|
|
|
|
let user_id=undefined;
|
|
|
|
let user_id="";
|
|
|
|
|
|
|
|
|
|
|
|
if(types==="publicly"){
|
|
|
|
if(types==="publicly"){
|
|
|
|
user_id=this.props.current_user&&this.props.current_user.login;
|
|
|
|
user_id=this.props.current_user&&this.props.current_user.login;
|
|
|
@ -82,8 +82,10 @@ class InfosTopics extends Component{
|
|
|
|
user_id=this.props.match.params&&this.props.match.params.username;
|
|
|
|
user_id=this.props.match.params&&this.props.match.params.username;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(user_id!=undefined){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(user_id===undefined){
|
|
|
|
|
|
|
|
user_id=this.props.match.params&&this.props.match.params.username;
|
|
|
|
|
|
|
|
}
|
|
|
|
let {per_page}=this.state;
|
|
|
|
let {per_page}=this.state;
|
|
|
|
let url=`/users/${user_id}/question_banks.json`;
|
|
|
|
let url=`/users/${user_id}/question_banks.json`;
|
|
|
|
|
|
|
|
|
|
|
@ -107,11 +109,7 @@ class InfosTopics extends Component{
|
|
|
|
isSpin:false
|
|
|
|
isSpin:false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}else{
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
isSpin:false
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
searchCategory=(type)=>{
|
|
|
|
searchCategory=(type)=>{
|
|
|
|