diff --git a/src/components/Dashboard/common/ObjectProperty.jsx b/src/components/Dashboard/common/ObjectProperty.jsx
index a9a2031..72e9c6a 100644
--- a/src/components/Dashboard/common/ObjectProperty.jsx
+++ b/src/components/Dashboard/common/ObjectProperty.jsx
@@ -131,6 +131,10 @@ const ObjectProperty = ({
options = options(objectData)
}
+ if (readOnly && typeof readOnly == 'function' && objectData) {
+ readOnly = readOnly(objectData)
+ }
+
if (!value) {
value = getPropertyValue(objectData, name)
}
@@ -364,7 +368,13 @@ const ObjectProperty = ({
}
case 'object': {
if (value && value._id) {
- return
+ return (
+
+ )
} else {
return (
@@ -439,6 +449,24 @@ const ObjectProperty = ({
)
}
}
+ case 'reference': {
+ if (value) {
+ return (
+
+ )
+ } else {
+ return (
+
+ n/a
+
+ )
+ }
+ }
case 'miscId': {
return
}