|
|
@ -197,6 +197,10 @@ export const getNestedParams = async ( |
|
|
|
): Promise<any[]> => { |
|
|
|
): Promise<any[]> => { |
|
|
|
return await columns.reduce(async (paramsArr, { column }) => { |
|
|
|
return await columns.reduce(async (paramsArr, { column }) => { |
|
|
|
if (column.uidt === UITypes.LinkToAnotherRecord) { |
|
|
|
if (column.uidt === UITypes.LinkToAnotherRecord) { |
|
|
|
|
|
|
|
// exclude system columns(relations to junction table)
|
|
|
|
|
|
|
|
if (column.system) { |
|
|
|
|
|
|
|
return paramsArr; |
|
|
|
|
|
|
|
} |
|
|
|
const colOpt = await column.getColOptions<LinkToAnotherRecordColumn>(); |
|
|
|
const colOpt = await column.getColOptions<LinkToAnotherRecordColumn>(); |
|
|
|
if (colOpt.type !== RelationTypes.BELONGS_TO) { |
|
|
|
if (colOpt.type !== RelationTypes.BELONGS_TO) { |
|
|
|
return [ |
|
|
|
return [ |
|
|
|