@sd-angular/core 0.0.1033 → 0.0.1034

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.
@@ -2571,7 +2571,13 @@
2571
2571
  }
2572
2572
  };
2573
2573
  this.add = function (idx, item) {
2574
- _this.items = __spread(_this.items.splice(idx, 0, item));
2574
+ if (_this.items.length > idx) {
2575
+ _this.items.splice(idx, 0, item);
2576
+ _this.items = __spread(_this.items);
2577
+ }
2578
+ else {
2579
+ _this.items = __spread(_this.items, [item]);
2580
+ }
2575
2581
  };
2576
2582
  this.update = function (idx, item) {
2577
2583
  if (_this.items[idx]) {
@@ -2581,7 +2587,8 @@
2581
2587
  };
2582
2588
  this.remove = function (idx) {
2583
2589
  if (_this.items[idx]) {
2584
- _this.items = __spread(_this.items.splice(idx, 1));
2590
+ _this.items.splice(idx, 1);
2591
+ _this.items = __spread(_this.items);
2585
2592
  }
2586
2593
  };
2587
2594
  this.detectChanges = function () { return _this.ref.detectChanges(); };