Use isvisible for populating schemas instead of readonly

This commit is contained in:
Adria Navarro 2024-08-23 10:42:43 +02:00
parent c397dadd76
commit daa152183c
1 changed files with 2 additions and 1 deletions

View File

@ -171,9 +171,10 @@ export async function enrichRelationshipSchema(
continue continue
} }
const isVisible = !!fieldSchema[relTableFieldName]?.visible
const isReadonly = !!fieldSchema[relTableFieldName]?.readonly const isReadonly = !!fieldSchema[relTableFieldName]?.readonly
resultSchema[relTableFieldName] = { resultSchema[relTableFieldName] = {
visible: isReadonly, visible: isVisible,
readonly: isReadonly, readonly: isReadonly,
} }
} }