fix(map): cannot read properties of undefined (reading 'title')
This commit is contained in:
parent
1b5f3a38cf
commit
b1b3e523c2
@ -12,10 +12,10 @@ const ReadPretty = (props) => {
|
|||||||
const field = useField();
|
const field = useField();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!field.title) {
|
if (!field.title && collectionField?.uiSchema?.title) {
|
||||||
field.title = collectionField.uiSchema.title;
|
field.title = collectionField.uiSchema.title;
|
||||||
}
|
}
|
||||||
}, collectionField.title);
|
}, collectionField?.title);
|
||||||
|
|
||||||
if (!readOnly)
|
if (!readOnly)
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user