tango-app-api-trax 3.8.23-nike → 3.8.24-nike

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-trax",
3
- "version": "3.8.23-nike",
3
+ "version": "3.8.24-nike",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1177,7 +1177,7 @@ export async function sopMobilechecklistMultiSectionFormatterv1( req, res, next
1177
1177
  for ( let j = 0; j < qaAnswers.length; j++ ) {
1178
1178
  if ( requestSection[i].qname == qaAnswers[j].oldQname || requestSection[i].qname == qaAnswers[j].qname ) {
1179
1179
  if ( qaAnswers[j].answerType == 'yes/no' ) {
1180
- let qaans = JSON.stringify( JSON.parse( qaAnswers[j].answers ) );
1180
+ let qaans = JSON.parse( JSON.stringify( qaAnswers[j].answers ) );
1181
1181
  let yn = [];
1182
1182
  if ( ( getChecklistQA?.redoEdit && qaAnswers[j].redo == requestSection[i].redo ) || !getChecklistQA?.redoEdit ) {
1183
1183
  for ( let k = 0; k < qaans.length; k++ ) {
@@ -1241,7 +1241,7 @@ export async function sopMobilechecklistMultiSectionFormatterv1( req, res, next
1241
1241
  };
1242
1242
  newArray.push( structure );
1243
1243
  } else if ( qaAnswers[j].answerType == 'multiplechoicesingle' || ( qaAnswers[j].answerType == 'dropdown' && !qaAnswers[j].allowMultiple ) ) {
1244
- let qaans = JSON.stringify( JSON.parse( qaAnswers[j].answers ) );
1244
+ let qaans = JSON.parse( JSON.stringify( qaAnswers[j].answers ) ); ;
1245
1245
  let ms = [];
1246
1246
  if ( ( getChecklistQA?.redoEdit && qaAnswers[j].redo == requestSection[i].redo ) || !getChecklistQA?.redoEdit ) {
1247
1247
  for ( let k = 0; k < qaans.length; k++ ) {
@@ -1321,7 +1321,7 @@ export async function sopMobilechecklistMultiSectionFormatterv1( req, res, next
1321
1321
  };
1322
1322
  newArray.push( structure );
1323
1323
  } else if ( qaAnswers[j].answerType == 'multiplechoicemultiple' || ( qaAnswers[j].answerType == 'dropdown' && qaAnswers[j].allowMultiple ) ) {
1324
- let qaans = JSON.stringify( JSON.parse( qaAnswers[j].answers ) );
1324
+ let qaans = JSON.parse( JSON.stringify( qaAnswers[j].answers ) );
1325
1325
  let mcmo = [];
1326
1326
  if ( ( getChecklistQA?.redoEdit && qaAnswers[j].redo == requestSection[i].redo ) || !getChecklistQA?.redoEdit ) {
1327
1327
  for ( let k = 0; k < qaans.length; k++ ) {