Browse Source

fix(nocodb): condition notempty logic

pull/5106/head
Wing-Kam Wong 2 years ago
parent
commit
2e87dbeaf9
  1. 4
      packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/conditionV2.ts

4
packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/conditionV2.ts

@ -396,7 +396,9 @@ const parseConditionV2 = async (
else if (filter.value === 'empty')
qb = qb.where(customWhereClause || field, '');
else if (filter.value === 'notempty')
qb = qb.whereNot(customWhereClause || field, '');
qb = qb
.whereNot(customWhereClause || field, '')
.orWhereNull(field);
else if (filter.value === 'true')
qb = qb.where(customWhereClause || field, true);
else if (filter.value === 'false')

Loading…
Cancel
Save