@startinblox/core 0.19.0-beta.11 → 0.19.0-beta.12

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.
package/dist/index.js CHANGED
@@ -12095,8 +12095,8 @@ const StoreMixin = {
12095
12095
  const resource = await store.getData(value, this.context);
12096
12096
  const nestedResource = resource ? await resource[this.nestedField] : null;
12097
12097
  this.resourceId = nestedResource ? nestedResource["@id"] : null;
12098
- if (!this.resourceId)
12099
- throw `Error: the key "${this.nestedField}" does not exist on the resource`;
12098
+ if (resource && !this.resourceId)
12099
+ throw `Error: the key "${this.nestedField}" does not exist on the resource at id "${await resource["@id"]}"`;
12100
12100
  }
12101
12101
  this.updateNavigateSubscription();
12102
12102
  this.subscription = PubSub.subscribe(this.resourceId, this.updateDOM.bind(this));