Browse Source

fix: fields query param - virtual column

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/7111/head
Pranav C 12 months ago
parent
commit
6b004ea678
  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