diff --git a/frontend/src/crudtemplates/ViewObjectPage.js b/frontend/src/crudtemplates/ViewObjectPage.js index 486edd2..8891181 100644 --- a/frontend/src/crudtemplates/ViewObjectPage.js +++ b/frontend/src/crudtemplates/ViewObjectPage.js @@ -142,7 +142,7 @@ const ViewObjectPage = (props) => {
{field.label}
-
+
{!loading && displayField(field, record, "ViewObjectPage", { setRecord: setRecord, diff --git a/frontend/src/crudtemplates/utils.js b/frontend/src/crudtemplates/utils.js index b99b30d..369f700 100644 --- a/frontend/src/crudtemplates/utils.js +++ b/frontend/src/crudtemplates/utils.js @@ -289,7 +289,9 @@ export const displayField = (field, record, context, props) => { x ) : ( <> - {acc}
{x} + {acc} +
+ {x} ), null,