tango-app-api-task 3.2.1-hotfix-3 → 3.2.1-hotfix-5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -3575,10 +3575,9 @@ export async function taskcreation( req, res ) {
|
|
|
3575
3575
|
return res.sendError( 'please enter Valid AnswerType', 500 );
|
|
3576
3576
|
}
|
|
3577
3577
|
if ( inputBody?.answerType === 'multiplechoicesingle' || inputBody?.answerType === 'multiplechoicemultiple' ) {
|
|
3578
|
-
if ( inputBody?.options && inputBody?.options.length >
|
|
3579
|
-
let optionsResult = []
|
|
3580
|
-
let
|
|
3581
|
-
for ( let option of optionList ) {
|
|
3578
|
+
if ( inputBody?.options && inputBody?.options.length > 1 ) {
|
|
3579
|
+
let optionsResult = []
|
|
3580
|
+
for ( let option of inputBody?.options ) {
|
|
3582
3581
|
let optiondata = {
|
|
3583
3582
|
'answer': '',
|
|
3584
3583
|
'sopFlag': false,
|