@onehat/ui 0.3.249 → 0.3.250
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/package.json
CHANGED
|
@@ -475,9 +475,9 @@ function Form(props) {
|
|
|
475
475
|
}
|
|
476
476
|
const itemDefaults = item.defaults;
|
|
477
477
|
children = _.map(items, (item, ix) => {
|
|
478
|
-
return buildFromItem(item, ix, itemDefaults);
|
|
478
|
+
return buildFromItem(item, ix, {...defaults, ...itemDefaults});
|
|
479
479
|
});
|
|
480
|
-
return <Element key={ix} title={title} {...itemDefaults} {...propsToPass} {...editorTypeProps}>{children}</Element>;
|
|
480
|
+
return <Element key={ix} title={title} {...defaults} {...itemDefaults} {...propsToPass} {...editorTypeProps}>{children}</Element>;
|
|
481
481
|
}
|
|
482
482
|
|
|
483
483
|
if (!label && Repository && propertyDef?.title) {
|
|
@@ -126,9 +126,9 @@ function Viewer(props) {
|
|
|
126
126
|
}
|
|
127
127
|
const defaults = item.defaults;
|
|
128
128
|
children = _.map(items, (item, ix) => {
|
|
129
|
-
return buildFromItem(item, ix, defaults);
|
|
129
|
+
return buildFromItem(item, ix, {...defaults, ...itemDefaults});
|
|
130
130
|
});
|
|
131
|
-
return <Element key={ix} title={title} {...defaults} {...propsToPass} {...editorTypeProps}>{children}</Element>;
|
|
131
|
+
return <Element key={ix} title={title} {...defaults} {...itemDefaults} {...propsToPass} {...editorTypeProps}>{children}</Element>;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
if (!label && Repository && propertyDef?.title) {
|