@contentful/experiences-visual-editor-react 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 +4 -1
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +4 -1
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -2162,9 +2162,12 @@ class EntityStoreBase {
|
|
|
2162
2162
|
if (this.isAsset(entity)) {
|
|
2163
2163
|
this.assetMap.set(entity.sys.id, entity);
|
|
2164
2164
|
}
|
|
2165
|
-
else {
|
|
2165
|
+
else if (this.isEntry(entity)) {
|
|
2166
2166
|
this.entryMap.set(entity.sys.id, entity);
|
|
2167
2167
|
}
|
|
2168
|
+
else {
|
|
2169
|
+
console.warn('Attempted to add an entity that is neither Asset nor Entry:', entity);
|
|
2170
|
+
}
|
|
2168
2171
|
}
|
|
2169
2172
|
async fetchAsset(id) {
|
|
2170
2173
|
const { resolved, missing } = this.getEntitiesFromMap('Asset', [id]);
|