skip condition in query designer, when parsing failed

This commit is contained in:
Jan Prochazka
2022-01-01 10:48:18 +01:00
parent 020382a153
commit 579d72f03a

View File

@@ -85,6 +85,7 @@ export class DesignerQueryDumper {
if (!table) continue; if (!table) continue;
if (!tables.find(x => x.designerId == table.designerId)) continue; if (!tables.find(x => x.designerId == table.designerId)) continue;
try {
const condition = parseFilter(column.filter, findDesignerFilterType(column, this.designer)); const condition = parseFilter(column.filter, findDesignerFilterType(column, this.designer));
if (condition) { if (condition) {
select.where = mergeConditions( select.where = mergeConditions(
@@ -99,6 +100,10 @@ export class DesignerQueryDumper {
}) })
); );
} }
} catch (err) {
// condition is skipped
continue;
}
} }
} }