tango-app-api-trax 3.4.1-alpha-19 → 3.4.1-alpha-20

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.4.1-alpha-19",
3
+ "version": "3.4.1-alpha-20",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -3249,13 +3249,13 @@ async function insertPCBulkV4( getCLconfig, checklistId, currentdate, updatedche
3249
3249
  sectionList.push( { sectionName: section.sectionName, oldName: section.sectionOldName, question: question, type: 'edit' } );
3250
3250
  } else {
3251
3251
  modifiedCount++;
3252
- sectionList.push( { sectionName: section?.sectionName, oldName: section?.sectionOldName, question: section.questions, type: 'add' } );
3252
+ sectionList.push( { section: section, type: 'add' } );
3253
3253
  }
3254
3254
  }
3255
3255
  // getsubmitDetails[0].questionAnswers = sectionList;
3256
3256
  sectionList.forEach( ( sec ) => {
3257
3257
  if ( sec.type == 'add' ) {
3258
- getsubmitDetails[0].questionAnswers.push( sec );
3258
+ getsubmitDetails[0].questionAnswers.push( sec.section );
3259
3259
  } else {
3260
3260
  sec.question.forEach( ( qn ) => {
3261
3261
  let sectionDetails = getsubmitDetails[0].questionAnswers.findIndex( ( section ) => section.sectionName == sec?.oldName || section.sectionName == sec.sectionName );