Browse Source

fix: convert function to async

pull/7304/head
Pranav C 11 months ago
parent
commit
17be448976
  1. 11
      packages/nocodb/src/helpers/columnHelpers.ts

11
packages/nocodb/src/helpers/columnHelpers.ts

@ -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 (

Loading…
Cancel
Save