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; -1;
break; break;
case 'empty': case 'empty':
case 'blank':
res = res =
data[field] === '' || data[field] === '' ||
data[field] === null || data[field] === null ||
data[field] === undefined; data[field] === undefined;
break; break;
case 'notempty': case 'notempty':
case 'notblank':
res = !( res = !(
data[field] === '' || data[field] === '' ||
data[field] === null || data[field] === null ||

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

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

Loading…
Cancel
Save