@schneideress/dashboardframework 20.0.4 → 20.0.5

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.
@@ -3935,7 +3935,7 @@ class RAWidgetContainer {
3935
3935
  }
3936
3936
  invokeWidgetResizedEvent() {
3937
3937
  if (this.widgetElement) {
3938
- if (typeof this.widgetElement.widgetResized === "function") {
3938
+ if (typeof this.widgetElement?.widgetResized === "function") {
3939
3939
  let size = {};
3940
3940
  size.height = this.height;
3941
3941
  size.width = this.width;
@@ -4924,7 +4924,7 @@ class RADashboardArea {
4924
4924
  this.initialWidgetCount === this.currentLoadingCount ? this.changeInitialWidgetCount() : null;
4925
4925
  if (this.initialWidgetCount > this.currentLoadingCount) {
4926
4926
  for (let i = 0; i < items.length; i++) {
4927
- if (this.isElementLoaded(items[i].widgetElement) ||
4927
+ if (this.isElementLoaded(items[i]?.widgetElement) ||
4928
4928
  (totalLoadedCount <= this.initialWidgetCount)) {
4929
4929
  this.currentLoadingCount++;
4930
4930
  items[i].canLoadData = true;
@@ -4935,7 +4935,7 @@ class RADashboardArea {
4935
4935
  }
4936
4936
  }
4937
4937
  changeInitialWidgetCount() {
4938
- this.isElementLoaded(this.widgetList[this.currentLoadingCount].widgetElement) ?
4938
+ this.isElementLoaded(this.widgetList[this.currentLoadingCount]?.widgetElement) ?
4939
4939
  this.initialWidgetCount++ : null;
4940
4940
  }
4941
4941
  dataLoaded(widgetInfo) {