Browse Source

Merge pull request #7111 from nocodb/fix/fields--virtual-col

fix: Fields query param - virtual column
pull/7120/head
Raju Udava 1 year ago committed by GitHub
parent
commit
b82874f9ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/nocodb/src/helpers/getAst.ts

2
packages/nocodb/src/helpers/getAst.ts

@ -68,7 +68,7 @@ const getAst = async ({
fields = Array.isArray(fields) ? fields : fields.split(','); fields = Array.isArray(fields) ? fields : fields.split(',');
if (throwErrorIfInvalidParams) { if (throwErrorIfInvalidParams) {
const colAliasMap = await model.getColAliasMapping(); const colAliasMap = await model.getColAliasMapping();
const aliasColMap = await model.getAliasColMapping(); const aliasColMap = await model.getAliasColObjMap();
const invalidFields = fields.filter( const invalidFields = fields.filter(
(f) => !colAliasMap[f] && !aliasColMap[f], (f) => !colAliasMap[f] && !aliasColMap[f],
); );

Loading…
Cancel
Save