optimized-react-component-library-xyz123 0.1.24 → 0.1.25
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 +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -924,10 +924,13 @@ function groupQuestionsByStepCategoryGroup(questions, steps, validationErrorsLis
|
|
|
924
924
|
questionGroups.push({
|
|
925
925
|
questionGroupId: groupId,
|
|
926
926
|
questionGroupType: questions2[0].questionGroupType,
|
|
927
|
-
questions: questions2
|
|
927
|
+
questions: questions2,
|
|
928
|
+
legend: questions2[0].categoryDescription
|
|
928
929
|
});
|
|
929
930
|
}
|
|
930
|
-
const isVisible = questionGroups.some(
|
|
931
|
+
const isVisible = questionGroups.some(
|
|
932
|
+
(group) => group.questions.some((question) => question.visible)
|
|
933
|
+
);
|
|
931
934
|
categories.push({
|
|
932
935
|
category,
|
|
933
936
|
visible: isVisible,
|
package/dist/index.mjs
CHANGED
|
@@ -860,10 +860,13 @@ function groupQuestionsByStepCategoryGroup(questions, steps, validationErrorsLis
|
|
|
860
860
|
questionGroups.push({
|
|
861
861
|
questionGroupId: groupId,
|
|
862
862
|
questionGroupType: questions2[0].questionGroupType,
|
|
863
|
-
questions: questions2
|
|
863
|
+
questions: questions2,
|
|
864
|
+
legend: questions2[0].categoryDescription
|
|
864
865
|
});
|
|
865
866
|
}
|
|
866
|
-
const isVisible = questionGroups.some(
|
|
867
|
+
const isVisible = questionGroups.some(
|
|
868
|
+
(group) => group.questions.some((question) => question.visible)
|
|
869
|
+
);
|
|
867
870
|
categories.push({
|
|
868
871
|
category,
|
|
869
872
|
visible: isVisible,
|
package/package.json
CHANGED