Browse Source

feat(nocodb): include blank & notblank

pull/5106/head
Wing-Kam Wong 2 years ago
parent
commit
6f19d32d5e
  1. 2
      packages/nocodb/src/lib/meta/helpers/webhookHelpers.ts
  2. 2
      packages/nocodb/src/lib/models/Filter.ts

2
packages/nocodb/src/lib/meta/helpers/webhookHelpers.ts

@ -54,12 +54,14 @@ export async function validateCondition(filters: Filter[], data: any) {
-1;
break;
case 'empty':
case 'blank':
res =
data[field] === '' ||
data[field] === null ||
data[field] === undefined;
break;
case 'notempty':
case 'notblank':
res = !(
data[field] === '' ||
data[field] === null ||

2
packages/nocodb/src/lib/models/Filter.ts

@ -34,6 +34,8 @@ export default class Filter {
| 'notnull'
| 'checked'
| 'notchecked'
| 'blank'
| 'notblank'
| 'allof'
| 'anyof'
| 'nallof'

Loading…
Cancel
Save