diff --git a/packages/zapp/console/src/components/Entities/EntityInputs.tsx b/packages/zapp/console/src/components/Entities/EntityInputs.tsx
index 4d0d3ab43..ede82f6dd 100644
--- a/packages/zapp/console/src/components/Entities/EntityInputs.tsx
+++ b/packages/zapp/console/src/components/Entities/EntityInputs.tsx
@@ -19,6 +19,13 @@ import * as React from 'react';
import t from './strings';
import { transformLiterals } from '../Literals/helpers';
+const coerceDefaultValue = (value: string | object | undefined): string | undefined => {
+ if (typeof value === 'object') {
+ return JSON.stringify(value);
+ }
+ return value;
+};
+
const useStyles = makeStyles((theme: Theme) => ({
header: {
marginBottom: theme.spacing(1),
@@ -179,7 +186,7 @@ export const EntityInputs: React.FC<{
{required ? : ''}
- {defaultValue || '-'}
+ {coerceDefaultValue(defaultValue) || '-'}
))}
@@ -214,7 +221,7 @@ export const EntityInputs: React.FC<{
{fixedInputs.map(({ name, defaultValue }) => (
{name}
- {defaultValue || '-'}
+ {coerceDefaultValue(defaultValue) || '-'}
))}