fix: view collection json field rendering error (#3077)

This commit is contained in:
katherinehhh 2023-11-23 11:50:34 +08:00 committed by GitHub
parent e2ed6be305
commit 78bd78ca3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ export const PreviewTable = (props) => {
'x-component': schema && fieldSource ? 'CollectionField' : 'Input',
'x-read-pretty': true,
'x-collection-field': fieldSource?.join('.'),
default: content,
default: JSON.stringify(content),
},
},
};