Browse Source

refactor(nocodb): filter type

pull/5222/head
Wing-Kam Wong 2 years ago
parent
commit
2a6cb88436
  1. 6
      packages/nocodb/src/lib/models/Filter.ts

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

@ -71,7 +71,7 @@ export const COMPARISON_SUB_OPS = <const>[
...IS_WITHIN_COMPARISON_SUB_OPS,
];
export default class Filter {
export default class Filter implements FilterType {
id: string;
fk_model_id?: string;
@ -85,14 +85,14 @@ export default class Filter {
value?: string;
logical_op?: string;
logical_op?: 'and' | 'or' | 'not';
is_group?: BoolType;
children?: Filter[];
project_id?: string;
base_id?: string;
column?: Column;
constructor(data: Filter | FilterType) {
constructor(data: Filter) {
Object.assign(this, data);
}

Loading…
Cancel
Save