@awell-health/ui-library 0.1.115 → 0.1.116
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 +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48926,7 +48926,12 @@ var Kr=[{
|
|
|
48926
48926
|
};
|
|
48927
48927
|
var updateVisibilityForTraditionalForm = function (questions, evaluation_results) {
|
|
48928
48928
|
if (evaluation_results.length === 0) {
|
|
48929
|
-
return questions.map(function (question) {
|
|
48929
|
+
return questions.map(function (question) {
|
|
48930
|
+
var _a, _b;
|
|
48931
|
+
return __assign(__assign({}, question), { visible: question.rule === null ||
|
|
48932
|
+
Array.isArray((_a = question.rule) === null || _a === void 0 ? void 0 : _a.conditions) &&
|
|
48933
|
+
((_b = question.rule) === null || _b === void 0 ? void 0 : _b.conditions.length) === 0 });
|
|
48934
|
+
});
|
|
48930
48935
|
} else
|
|
48931
48936
|
{
|
|
48932
48937
|
return questions.map(function (question) {
|