|
|
|
@ -698,7 +698,7 @@ export default class TPMquestion extends Component {
|
|
|
|
|
let newnewanswerMDvalue = this.editanswersRef.current.getValue().trim();
|
|
|
|
|
console.log(newnewanswerMDvalue)
|
|
|
|
|
if(newnewanswerMDvalue===""||newnewanswerMDvalue===" "){
|
|
|
|
|
newnewanswerMDvalue=newlist
|
|
|
|
|
newnewanswerMDvalue=undefined
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
url="/shixuns/" + id + "/challenges/" + challenge_id + "/update_choose_question.json?choose_id="+challenge_choose_id;
|
|
|
|
@ -747,7 +747,7 @@ export default class TPMquestion extends Component {
|
|
|
|
|
let newnewanswerMDvalue = this.newquestioMDMdCont.current.getValue().trim();
|
|
|
|
|
|
|
|
|
|
if(newnewanswerMDvalue===""||newnewanswerMDvalue===" "){
|
|
|
|
|
newnewanswerMDvalue=newlist
|
|
|
|
|
newnewanswerMDvalue=undefined
|
|
|
|
|
}
|
|
|
|
|
url="/shixuns/" + id + "/challenges/" + challenge_id + "/create_choose_question.json";
|
|
|
|
|
axios.post(url, {
|
|
|
|
|