@contentful/experiences-core 1.40.2-dev-20250610T1340-ebbee81.0 → 1.40.3-dev-20250610T1641-556fd40.0

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
@@ -3289,9 +3289,12 @@ class EntityStoreBase {
3289
3289
  if (this.isAsset(entity)) {
3290
3290
  this.assetMap.set(entity.sys.id, entity);
3291
3291
  }
3292
- else {
3292
+ else if (this.isEntry(entity)) {
3293
3293
  this.entryMap.set(entity.sys.id, entity);
3294
3294
  }
3295
+ else {
3296
+ console.warn('Attempted to add an entity that is neither Asset nor Entry:', entity);
3297
+ }
3295
3298
  }
3296
3299
  async fetchAsset(id) {
3297
3300
  const { resolved, missing } = this.getEntitiesFromMap('Asset', [id]);