From ca9adbb0907cf8dc776303052d3fa85380b0814f Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Wed, 15 Feb 2023 23:24:02 +0800 Subject: [PATCH] refactor(nocodb): check filter.fk_column_id & is_group --- .../src/lib/version-upgrader/ncFilterUpgrader_0104004.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/nocodb/src/lib/version-upgrader/ncFilterUpgrader_0104004.ts b/packages/nocodb/src/lib/version-upgrader/ncFilterUpgrader_0104004.ts index efb644ad57..7cbb29fd56 100644 --- a/packages/nocodb/src/lib/version-upgrader/ncFilterUpgrader_0104004.ts +++ b/packages/nocodb/src/lib/version-upgrader/ncFilterUpgrader_0104004.ts @@ -236,11 +236,10 @@ async function migrateFilters(ncMeta: NcMetaIO) { const filters = await ncMeta.metaList2(null, null, MetaTable.FILTER_EXP); let actions = []; for (const filter of filters) { - const col = await Column.get({ colId: filter.fk_column_id }, ncMeta); - if (!col || !col.uidt) { - // column not found -> skip + if (!filter.fk_column_id || filter.is_group) { continue; } + const col = await Column.get({ colId: filter.fk_column_id }, ncMeta); if ( [ UITypes.SingleLineText,