@syncfusion/ej2-layouts 24.2.3 → 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.
@@ -3223,10 +3223,14 @@ let DashboardLayout = class DashboardLayout extends Component {
3223
3223
  this.panelResponsiveUpdate();
3224
3224
  this.updateGridLines();
3225
3225
  }
3226
- this.removeResizeClasses(this.panelCollection);
3227
- this.setClasses(this.panelCollection);
3226
+ if (!isNullOrUndefined(this.panelCollection)) {
3227
+ this.removeResizeClasses(this.panelCollection);
3228
+ this.setClasses(this.panelCollection);
3229
+ }
3228
3230
  this.resizeEvents();
3229
- this.checkDragging(this.dragCollection);
3231
+ if (!isNullOrUndefined(this.panelCollection)) {
3232
+ this.checkDragging(this.dragCollection);
3233
+ }
3230
3234
  }
3231
3235
  updateGridLines() {
3232
3236
  if (this.element.querySelector('.e-dashboard-gridline-table')) {
@@ -3291,9 +3295,13 @@ let DashboardLayout = class DashboardLayout extends Component {
3291
3295
  this.panelPropertyChange(updatedPanel[i], { row: i, col: 0 });
3292
3296
  this.setPanelPosition(panelElement, updatedPanel[i].row, updatedPanel[i].col);
3293
3297
  this.panelsSizeY = this.panelsSizeY + updatedPanel[i].sizeY;
3294
- this.setClasses(this.panelCollection);
3295
- this.checkDragging(this.dragCollection);
3296
- this.removeResizeClasses(this.panelCollection);
3298
+ if (!isNullOrUndefined(this.panelCollection)) {
3299
+ this.setClasses(this.panelCollection);
3300
+ this.removeResizeClasses(this.panelCollection);
3301
+ }
3302
+ if (!isNullOrUndefined(this.dragCollection)) {
3303
+ this.checkDragging(this.dragCollection);
3304
+ }
3297
3305
  }
3298
3306
  }
3299
3307
  this.updateRowHeight();