optimized-react-component-library-xyz123 0.34.1 → 0.34.3

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/dist/index.js CHANGED
@@ -1434,11 +1434,14 @@ function buildStepCategoryGroupQuestionStructure(questions, steps, validationErr
1434
1434
  for (const [category, groupMap] of Array.from(categoryMap.entries())) {
1435
1435
  const questionGroups = [];
1436
1436
  for (const [groupId, questions2] of Array.from(groupMap.entries())) {
1437
+ console.log(questions2);
1438
+ const firstVisibleQuestion = questions2.find((q) => q.visible);
1439
+ console.log(firstVisibleQuestion);
1437
1440
  questionGroups.push({
1438
1441
  questionGroupId: groupId,
1439
1442
  questionGroupType: questions2[0].questionGroupType,
1440
1443
  questions: questions2,
1441
- legend: questions2[0].legend
1444
+ legend: firstVisibleQuestion.legend
1442
1445
  });
1443
1446
  }
1444
1447
  const isVisible = questionGroups.some(