optimized-react-component-library-xyz123 0.33.8 → 0.34.2
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 +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1434,11 +1434,12 @@ 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
|
+
const firstVisibleQuestion = questions2.find((q) => q.visible);
|
|
1437
1438
|
questionGroups.push({
|
|
1438
1439
|
questionGroupId: groupId,
|
|
1439
1440
|
questionGroupType: questions2[0].questionGroupType,
|
|
1440
1441
|
questions: questions2,
|
|
1441
|
-
legend:
|
|
1442
|
+
legend: firstVisibleQuestion.legend
|
|
1442
1443
|
});
|
|
1443
1444
|
}
|
|
1444
1445
|
const isVisible = questionGroups.some(
|