@dataclouder/ngx-core 0.1.48 → 0.1.50

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.
@@ -178,6 +178,12 @@ class FilterService {
178
178
  query[filterDef.field] = { $gte: value[0], $lte: value[1] };
179
179
  }
180
180
  break;
181
+ case '$exists':
182
+ query[filterDef.field] = { $exists: value };
183
+ break;
184
+ case '$not_null':
185
+ query[filterDef.field] = { $ne: null };
186
+ break;
181
187
  default:
182
188
  // Default fallback
183
189
  query[filterDef.field] = value;
@@ -3726,7 +3732,7 @@ class FormUtilsService {
3726
3732
  });
3727
3733
  }
3728
3734
  patchLearnableFormGroup(form, data) {
3729
- if (data.tags) {
3735
+ if (data && data?.tags) {
3730
3736
  this.patchFormArray(form.controls.tags, data.tags);
3731
3737
  }
3732
3738
  }