diff --git a/packages/nocodb/src/models/Filter.ts b/packages/nocodb/src/models/Filter.ts index 05d7d49d65..3902d775a3 100644 --- a/packages/nocodb/src/models/Filter.ts +++ b/packages/nocodb/src/models/Filter.ts @@ -171,9 +171,14 @@ export default class Filter implements FilterType { filter: Partial, ncMeta = Noco.ncMeta, ) { - if (!(id && (filter.fk_view_id || filter.fk_hook_id))) { + if ( + !( + id && + (filter.fk_view_id || filter.fk_hook_id || filter.fk_parent_column_id) + ) + ) { throw new Error( - `Mandatory fields missing in FILTER_EXP cache population : id(${id}), fk_view_id(${filter.fk_view_id}), fk_hook_id(${filter.fk_hook_id})`, + `Mandatory fields missing in FILTER_EXP cache population : id(${id}), fk_view_id(${filter.fk_view_id}), fk_hook_id(${filter.fk_hook_id}), fk_parent_column_id(${filter.fk_parent_column_id})`, ); } const key = `${CacheScope.FILTER_EXP}:${id}`;