@syncfusion/ej2-layouts 24.1.41 → 24.2.4

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.
@@ -3274,10 +3274,14 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
3274
3274
  this.panelResponsiveUpdate();
3275
3275
  this.updateGridLines();
3276
3276
  }
3277
- this.removeResizeClasses(this.panelCollection);
3278
- this.setClasses(this.panelCollection);
3277
+ if (!isNullOrUndefined(this.panelCollection)) {
3278
+ this.removeResizeClasses(this.panelCollection);
3279
+ this.setClasses(this.panelCollection);
3280
+ }
3279
3281
  this.resizeEvents();
3280
- this.checkDragging(this.dragCollection);
3282
+ if (!isNullOrUndefined(this.panelCollection)) {
3283
+ this.checkDragging(this.dragCollection);
3284
+ }
3281
3285
  };
3282
3286
  DashboardLayout.prototype.updateGridLines = function () {
3283
3287
  if (this.element.querySelector('.e-dashboard-gridline-table')) {
@@ -3349,9 +3353,13 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
3349
3353
  this.panelPropertyChange(updatedPanel[i], { row: i, col: 0 });
3350
3354
  this.setPanelPosition(panelElement, updatedPanel[i].row, updatedPanel[i].col);
3351
3355
  this.panelsSizeY = this.panelsSizeY + updatedPanel[i].sizeY;
3352
- this.setClasses(this.panelCollection);
3353
- this.checkDragging(this.dragCollection);
3354
- this.removeResizeClasses(this.panelCollection);
3356
+ if (!isNullOrUndefined(this.panelCollection)) {
3357
+ this.setClasses(this.panelCollection);
3358
+ this.removeResizeClasses(this.panelCollection);
3359
+ }
3360
+ if (!isNullOrUndefined(this.dragCollection)) {
3361
+ this.checkDragging(this.dragCollection);
3362
+ }
3355
3363
  }
3356
3364
  }
3357
3365
  this.updateRowHeight();