|
|
@ -1803,6 +1803,7 @@ class PollNew extends Component {
|
|
|
|
var urlly = `/polls/${poll_id}/poll_questions.json`
|
|
|
|
var urlly = `/polls/${poll_id}/poll_questions.json`
|
|
|
|
var max_choicess = null;
|
|
|
|
var max_choicess = null;
|
|
|
|
var min_choicess = null;
|
|
|
|
var min_choicess = null;
|
|
|
|
|
|
|
|
try {
|
|
|
|
if (max_choices === 0 && min_choices === 0) {
|
|
|
|
if (max_choices === 0 && min_choices === 0) {
|
|
|
|
max_choicess = null;
|
|
|
|
max_choicess = null;
|
|
|
|
min_choicess = null;
|
|
|
|
min_choicess = null;
|
|
|
@ -1810,10 +1811,14 @@ class PollNew extends Component {
|
|
|
|
max_choicess = max_choices;
|
|
|
|
max_choicess = max_choices;
|
|
|
|
min_choicess = min_choices;
|
|
|
|
min_choicess = min_choices;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log("createquestionsandanswers");
|
|
|
|
}catch (e) {
|
|
|
|
console.log(max_choicess);
|
|
|
|
max_choicess = null;
|
|
|
|
console.log(min_choicess);
|
|
|
|
min_choicess = null;
|
|
|
|
console.log(length);
|
|
|
|
}
|
|
|
|
|
|
|
|
// console.log("createquestionsandanswers");
|
|
|
|
|
|
|
|
// console.log(max_choicess);
|
|
|
|
|
|
|
|
// console.log(min_choicess);
|
|
|
|
|
|
|
|
// console.log(length);
|
|
|
|
axios.post(urlly, {
|
|
|
|
axios.post(urlly, {
|
|
|
|
question_title: object.question.question_title,
|
|
|
|
question_title: object.question.question_title,
|
|
|
|
question_type: number,
|
|
|
|
question_type: number,
|
|
|
@ -1856,6 +1861,7 @@ class PollNew extends Component {
|
|
|
|
var thiss = this;
|
|
|
|
var thiss = this;
|
|
|
|
var max_choicess = null;
|
|
|
|
var max_choicess = null;
|
|
|
|
var min_choicess = null;
|
|
|
|
var min_choicess = null;
|
|
|
|
|
|
|
|
try {
|
|
|
|
if (max_choices === 0 && min_choices === 0) {
|
|
|
|
if (max_choices === 0 && min_choices === 0) {
|
|
|
|
max_choicess = null;
|
|
|
|
max_choicess = null;
|
|
|
|
min_choicess = null;
|
|
|
|
min_choicess = null;
|
|
|
@ -1863,6 +1869,11 @@ class PollNew extends Component {
|
|
|
|
max_choicess = max_choices;
|
|
|
|
max_choicess = max_choices;
|
|
|
|
min_choicess = min_choices;
|
|
|
|
min_choicess = min_choices;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
max_choicess = null;
|
|
|
|
|
|
|
|
min_choicess = null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
console.log("createquestionsandanswers");
|
|
|
|
console.log("createquestionsandanswers");
|
|
|
|
console.log(max_choicess);
|
|
|
|
console.log(max_choicess);
|
|
|
|
console.log(min_choicess);
|
|
|
|
console.log(min_choicess);
|
|
|
|