fix: large field in the subtable do not display value (#2475)

This commit is contained in:
katherinehhh 2023-08-17 18:09:34 +08:00 committed by GitHub
parent 3fc3d34aa7
commit d58d0d697c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ export const Editable = observer((props) => {
const field: any = useField();
const containerRef = useRef(null);
const fieldSchema = useFieldSchema();
const value = typeof field.value === 'object' ? field.value?.default : field.value;
const value = field.value;
const schema: any = {
name: fieldSchema.name,
'x-collection-field': fieldSchema['x-collection-field'],