@onehat/ui 0.3.106 → 0.3.108
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 +1 -1
- package/src/Components/Form/Form.js +11 -1
- package/src/Styles/Global.css +3 -0
package/package.json
CHANGED
|
@@ -384,7 +384,17 @@ function Form(props) {
|
|
|
384
384
|
}
|
|
385
385
|
|
|
386
386
|
if (isEditorViewOnly || !isEditable) {
|
|
387
|
-
|
|
387
|
+
let value = null;
|
|
388
|
+
if (record?.properties && record.properties[name]) {
|
|
389
|
+
value = record.properties[name].displayValue;
|
|
390
|
+
}
|
|
391
|
+
if (_.isNil(value) && record && record[name]) {
|
|
392
|
+
value = record[name];
|
|
393
|
+
}
|
|
394
|
+
if (_.isNil(value) && startingValues && startingValues[name]) {
|
|
395
|
+
value = startingValues[name];
|
|
396
|
+
}
|
|
397
|
+
|
|
388
398
|
let element = <Element
|
|
389
399
|
value={value}
|
|
390
400
|
parent={self}
|