@hmcts/ccd-case-ui-toolkit 4.9.0-rc.5 → 4.9.0-rc.6

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.umd.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @hmcts/ccd-case-ui-toolkit - Case UI Toolkit
3
- * @version v4.9.0-rc.5
3
+ * @version v4.9.0-rc.6
4
4
  * @link undefined
5
5
  * @license MIT
6
6
  */
@@ -21851,6 +21851,10 @@ var ReadFieldsFilterPipe = /** @class */ (function () {
21851
21851
  return !!hasChildrenWithValue;
21852
21852
  };
21853
21853
  ReadFieldsFilterPipe.isValidCollection = function (field, values) {
21854
+ // if field is collection and it has complex/collection child field; parent field doesnt have value defined
21855
+ if (!Array.isArray(field.value) && values && values.hasOwnProperty(field.id)) {
21856
+ return true;
21857
+ }
21854
21858
  var isNotEmpty = Array.isArray(field.value) && field.value.length > 0;
21855
21859
  if (isNotEmpty && field.field_type.collection_field_type.type === 'Complex') {
21856
21860
  return !!field.value.find(function (item) {