@contentful/experiences-visual-editor-react 1.40.2 → 1.40.3-dev-20250611T0948-7389339.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/renderApp.js CHANGED
@@ -44783,9 +44783,12 @@ class EntityStoreBase {
44783
44783
  if (this.isAsset(entity)) {
44784
44784
  this.assetMap.set(entity.sys.id, entity);
44785
44785
  }
44786
- else {
44786
+ else if (this.isEntry(entity)) {
44787
44787
  this.entryMap.set(entity.sys.id, entity);
44788
44788
  }
44789
+ else {
44790
+ console.warn('Attempted to add an entity that is neither Asset nor Entry:', entity);
44791
+ }
44789
44792
  }
44790
44793
  async fetchAsset(id) {
44791
44794
  const { resolved, missing } = this.getEntitiesFromMap('Asset', [id]);