@contentful/experiences-visual-editor-react 3.8.0-dev-20250929T1511-4b6bf2c.0 → 3.8.0-dev-20250930T1552-65a9633.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 +9 -1
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +9 -1
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -5106,9 +5106,17 @@ const useComponentProps = ({ node, entityStore, areEntitiesFetched, resolveDesig
|
|
|
5106
5106
|
// eg: "/uuid" vs "/uuid/fields/[fileName]/~locale" as the regular BoundValue would have
|
|
5107
5107
|
const [, uuid, maybePath] = variableMapping.path.split('/');
|
|
5108
5108
|
const link = dataSource[uuid];
|
|
5109
|
-
let boundValue;
|
|
5110
5109
|
// starting from here, if the prop is of type 'BoundValue', and has prebinding
|
|
5111
5110
|
// we are going to resolve the incomplete path
|
|
5111
|
+
let boundValue;
|
|
5112
|
+
// TODO: Temporary fix while we look into SPA-3212 it occurs where we have prebound props but data source link is missing
|
|
5113
|
+
// this only occurs after live updates of nested patterns.
|
|
5114
|
+
if (!link && isPreboundProp(variableMapping) && variableMapping.isPrebound) {
|
|
5115
|
+
return {
|
|
5116
|
+
...acc,
|
|
5117
|
+
[variableName]: variableDefinition.defaultValue,
|
|
5118
|
+
};
|
|
5119
|
+
}
|
|
5112
5120
|
if (link && isPreboundProp(variableMapping) && variableMapping.isPrebound) {
|
|
5113
5121
|
const prebindingPath = getPrebindingPathBySourceEntry(variableMapping, (dataSourceKey) => {
|
|
5114
5122
|
const link = dataSource[dataSourceKey];
|