|
|
@ -184,6 +184,8 @@ const isColumnRequired = (col?: ColumnType) => col && col.rqd && !col.cdf && !co |
|
|
|
|
|
|
|
|
|
|
|
const isVirtualColRequired = (col: ColumnType, columns: ColumnType[]) => |
|
|
|
const isVirtualColRequired = (col: ColumnType, columns: ColumnType[]) => |
|
|
|
col.uidt === UITypes.LinkToAnotherRecord && |
|
|
|
col.uidt === UITypes.LinkToAnotherRecord && |
|
|
|
|
|
|
|
// in some cases we just have type and name so we need to confirm colOptions is there
|
|
|
|
|
|
|
|
col.colOptions && |
|
|
|
(<LinkToAnotherRecordType>col.colOptions).type === RelationTypes.BELONGS_TO && |
|
|
|
(<LinkToAnotherRecordType>col.colOptions).type === RelationTypes.BELONGS_TO && |
|
|
|
isColumnRequired(columns.find((c) => c.id === (<LinkToAnotherRecordType>col.colOptions).fk_child_column_id)) |
|
|
|
isColumnRequired(columns.find((c) => c.id === (<LinkToAnotherRecordType>col.colOptions).fk_child_column_id)) |
|
|
|
|
|
|
|
|
|
|
|