@smartbit4all/ng-client 2.0.2 → 2.0.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.
@@ -5880,15 +5880,20 @@ let SmartComponentApiClient = class SmartComponentApiClient {
5880
5880
  return this._uuid;
5881
5881
  }
5882
5882
  set uuid(uuid) {
5883
+ let firstUuid = true;
5883
5884
  if (this.uuid) {
5884
5885
  this.viewContext.unfollow(this.uuid);
5886
+ firstUuid = false;
5885
5887
  }
5886
5888
  this._uuid = uuid;
5887
5889
  if (uuid) {
5888
- this.widgets.widgets.forEach((ref) => {
5890
+ this.widgets.widgets.forEach((ref, key) => {
5889
5891
  if (ref instanceof SmartGridComponent) {
5890
5892
  ref.uuid = uuid;
5891
5893
  }
5894
+ else if (!ref && !firstUuid) {
5895
+ console.error(`Provided reference for ${key} is undefined on uuid change.`);
5896
+ }
5892
5897
  });
5893
5898
  if (!this.uuidOfPageHasBeenChangedSubscription) {
5894
5899
  this.uuidOfPageHasBeenChangedSubscription = this.viewContext.uuidOfPageHasBeenChanged