mmhglobal-dynamicform 2.14.1 → 2.14.2

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.
@@ -2365,24 +2365,26 @@ class ZGridBindingDirective extends DataBindingDirective {
2365
2365
  */
2366
2366
  getFilterParams() {
2367
2367
  const filterParams = this.field['FilterParams'];
2368
- if (filterParams && filterParams.startsWith("group.")) {
2369
- // If 'filterParams' starts with "group.", extend the existing array.
2370
- this.params.filterParams = [
2371
- ...this.params.filterParams,
2372
- ...ZComponentHelper.getGroupValue(filterParams, this.grp)
2373
- ];
2374
- }
2375
- else {
2376
- // If 'filterParams' does not start with "group.", use it directly.
2377
- this.params.filterParams = [
2378
- ...this.params.filterParams,
2379
- filterParams
2380
- ];
2381
- }
2382
2368
  // Initialize filter parameters if undefined.
2383
2369
  if (!this.params.filterParams) {
2384
2370
  this.params.filterParams = [];
2385
2371
  }
2372
+ if (filterParams) {
2373
+ if (filterParams.startsWith("group.")) {
2374
+ // If 'filterParams' starts with "group.", extend the existing array.
2375
+ this.params.filterParams = [
2376
+ ...this.params.filterParams,
2377
+ ...ZComponentHelper.getGroupValue(filterParams, this.grp)
2378
+ ];
2379
+ }
2380
+ else {
2381
+ // If 'filterParams' does not start with "group.", use it directly.
2382
+ this.params.filterParams = [
2383
+ ...this.params.filterParams,
2384
+ filterParams
2385
+ ];
2386
+ }
2387
+ }
2386
2388
  // Check if there are column filters in the grid state and append to filterparam
2387
2389
  if (this.gridSetting.gridState?.filter?.filters) {
2388
2390
  this.gridSetting.gridState.filter?.filters?.forEach((filter) => {