@syncfusion/ej2-layouts 29.1.34 → 29.1.37

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.
@@ -4023,7 +4023,7 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
4023
4023
  return available;
4024
4024
  };
4025
4025
  DashboardLayout.prototype.checkForSwapping = function (collisions, element) {
4026
- if (!this.mainElement || collisions.length === 0) {
4026
+ if (Object.keys(this.cloneObject).length === 0 || !this.mainElement || collisions.length === 0) {
4027
4027
  return false;
4028
4028
  }
4029
4029
  var direction;
@@ -4443,8 +4443,7 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
4443
4443
  }
4444
4444
  else {
4445
4445
  for (var i = 0; i < this.panels.length; i++) {
4446
- if (((!isNullOrUndefined(added) ? (this.panels[i].id !== added[0].id) : true) &&
4447
- (!isNullOrUndefined(removed) ? (this.panels[i].id !== removed[0].id) : true)) &&
4446
+ if (((!isNullOrUndefined(removed) ? (this.panels[i].id !== removed[0].id) : true)) &&
4448
4447
  (this.panels[i].row !== this.panelsInitialModel[i].row ||
4449
4448
  this.panels[i].col !== this.panelsInitialModel[i].col)) {
4450
4449
  changedPanels.push(this.panels[i]);