@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.
Files changed (2) hide show
  1. package/dist/index.js +6 -1
  2. 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) {return __assign(__assign({}, question), { visible: question.rule === null });});
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awell-health/ui-library",
3
- "version": "0.1.115",
3
+ "version": "0.1.116",
4
4
  "description": "UI components to integrate with Awell Health",
5
5
  "repository": {
6
6
  "type": "git",