|
|
@ -290,8 +290,15 @@ export const sanitizeColumnName = (name: string) => { |
|
|
|
|
|
|
|
|
|
|
|
// if column is an alias column then return the original column
|
|
|
|
// if column is an alias column then return the original column
|
|
|
|
// for example CreatedTime is an alias column for CreateTime system column
|
|
|
|
// for example CreatedTime is an alias column for CreateTime system column
|
|
|
|
export const getRefColumnIfAlias = (column: Column, columns?: Column[]) => { |
|
|
|
export const getRefColumnIfAlias = async ( |
|
|
|
if (![UITypes.CreateTime, UITypes.LastModifiedTime].includes(column.uidt)) |
|
|
|
column: Column, |
|
|
|
|
|
|
|
columns?: Column[], |
|
|
|
|
|
|
|
) => { |
|
|
|
|
|
|
|
if ( |
|
|
|
|
|
|
|
!([UITypes.CreateTime, UITypes.LastModifiedTime] as UITypes[]).includes( |
|
|
|
|
|
|
|
column.uidt, |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
) |
|
|
|
return column; |
|
|
|
return column; |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|