Browse Source

fix: switch function based on operator

pull/7299/head
Pranav C 10 months ago
parent
commit
576edd0af4
  1. 2
      packages/nocodb/src/db/formulav2/formulaQueryBuilderv2.ts

2
packages/nocodb/src/db/formulav2/formulaQueryBuilderv2.ts

@ -888,7 +888,7 @@ async function _formulaQueryBuilder(
arguments: [operand === 'left' ? pt.right : pt.left], arguments: [operand === 'left' ? pt.right : pt.left],
callee: { callee: {
type: 'Identifier', type: 'Identifier',
name: 'ISBLANK', name: pt.operator === '==' ? 'ISBLANK' : 'NOTBLANK',
}, },
}, },
alias, alias,

Loading…
Cancel
Save