Fix build

This commit is contained in:
Adria Navarro 2024-08-21 16:33:21 +02:00
parent de61754312
commit 0e468b04de
1 changed files with 3 additions and 2 deletions

View File

@ -170,10 +170,11 @@ export async function enrichRelationshipSchemas(
const isReadonly =
isPrimaryDisplay || !!field.schema[relTableFieldName]?.readonly
field.schema[relTableFieldName] = {
primaryDisplay: isPrimaryDisplay,
type: relTableField.type,
visible: isReadonly,
readonly: isReadonly,
// @ts-ignore this would require a big refactor around field typings, having document types and api dtos
primaryDisplay: isPrimaryDisplay,
type: relTableField.type,
}
}
}