@contentful/experiences-core 3.8.4-dev-20251024T1213-2c026d6.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.
@@ -2923,6 +2923,11 @@ const resolveBackgroundImageBinding = ({ variableData, getBoundEntityById, dataS
2923
2923
  // '/lUERH7tX7nJTaPX6f0udB/fields/assetReference/~locale/fields/file/~locale'
2924
2924
  const [, uuid] = variableData.path.split('/');
2925
2925
  const binding = dataSource[uuid];
2926
+ // Safeguard against edge cases - we should not have bound style values that do not have a data source entry.
2927
+ // However, just in case, we handle it here as empty and allow the user to replace without errors.
2928
+ if (!binding) {
2929
+ return;
2930
+ }
2926
2931
  const boundEntity = getBoundEntityById(binding.sys.id);
2927
2932
  if (!boundEntity) {
2928
2933
  return;