From 576edd0af48fb14de6e7fc54ec9afc42834691f4 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 26 Dec 2023 18:40:17 +0000 Subject: [PATCH] fix: switch function based on operator --- packages/nocodb/src/db/formulav2/formulaQueryBuilderv2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nocodb/src/db/formulav2/formulaQueryBuilderv2.ts b/packages/nocodb/src/db/formulav2/formulaQueryBuilderv2.ts index 645dc1db9e..12ed4e8d42 100644 --- a/packages/nocodb/src/db/formulav2/formulaQueryBuilderv2.ts +++ b/packages/nocodb/src/db/formulav2/formulaQueryBuilderv2.ts @@ -888,7 +888,7 @@ async function _formulaQueryBuilder( arguments: [operand === 'left' ? pt.right : pt.left], callee: { type: 'Identifier', - name: 'ISBLANK', + name: pt.operator === '==' ? 'ISBLANK' : 'NOTBLANK', }, }, alias,