Browse Source

fix: convert function to async

pull/7304/head
Pranav C 12 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
// for example CreatedTime is an alias column for CreateTime system column
export const getRefColumnIfAlias = (column: Column, columns?: Column[]) => {
if (![UITypes.CreateTime, UITypes.LastModifiedTime].includes(column.uidt))
export const getRefColumnIfAlias = async (
column: Column,
columns?: Column[],
) => {
if (
!([UITypes.CreateTime, UITypes.LastModifiedTime] as UITypes[]).includes(
column.uidt,
)
)
return column;
return (

Loading…
Cancel
Save