Browse Source

fix(gui): skip if related view/hook/column of a filter is not found

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4861/head
Pranav C 2 years ago
parent
commit
ab1e60a97c
  1. 8
      packages/nocodb/src/lib/version-upgrader/ncFilterUpgrader.ts

8
packages/nocodb/src/lib/version-upgrader/ncFilterUpgrader.ts

@ -21,7 +21,13 @@ export default async function ({ ncMeta }: NcUpgraderCtx) {
} else { } else {
continue; continue;
} }
if (filter.project_id != model.project_id) {
// skip if related model is not found
if (!model) {
continue;
}
if (filter.project_id !== model.project_id) {
await ncMeta.metaUpdate( await ncMeta.metaUpdate(
null, null,
null, null,

Loading…
Cancel
Save