Browse Source

fix(nc-gui): conditional fields oss backend changes

pull/9609/head
Ramesh Mane 2 months ago
parent
commit
d243268a59
  1. 9
      packages/nocodb/src/models/Filter.ts

9
packages/nocodb/src/models/Filter.ts

@ -171,9 +171,14 @@ export default class Filter implements FilterType {
filter: Partial<FilterType>,
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}`;

Loading…
Cancel
Save