@contentful/experiences-core 3.8.4-beta.0 → 3.8.4-dev-20251113T1410-1b718c2.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/cjs/index.cjs +5 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +5 -0
- package/dist/esm/index.js.map +1 -1
- package/package.json +3 -3
package/dist/esm/index.js
CHANGED
|
@@ -2919,6 +2919,11 @@ const resolveBackgroundImageBinding = ({ variableData, getBoundEntityById, dataS
|
|
|
2919
2919
|
// '/lUERH7tX7nJTaPX6f0udB/fields/assetReference/~locale/fields/file/~locale'
|
|
2920
2920
|
const [, uuid] = variableData.path.split('/');
|
|
2921
2921
|
const binding = dataSource[uuid];
|
|
2922
|
+
// Safeguard against edge cases - we should not have bound style values that do not have a data source entry.
|
|
2923
|
+
// However, just in case, we handle it here as empty and allow the user to replace without errors.
|
|
2924
|
+
if (!binding) {
|
|
2925
|
+
return;
|
|
2926
|
+
}
|
|
2922
2927
|
const boundEntity = getBoundEntityById(binding.sys.id);
|
|
2923
2928
|
if (!boundEntity) {
|
|
2924
2929
|
return;
|