Skip to content

Commit

Permalink
fix type error filter undefined (reading key)
Browse files Browse the repository at this point in the history
  • Loading branch information
nh758 committed Nov 5, 2024
1 parent a302267 commit e94ea16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FilterComplexCore.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ module.exports = class FilterComplexCore extends ABComponent {
return;
}
// Skip incomplete filter condition
else if (!filter.key || !filter.rule) return;
else if (!filter || !filter.key || !filter.rule) return;

const fieldInfo = (this._Fields || []).filter(
(f) => f.id == filter.key || f.columnName == filter.key
Expand Down

0 comments on commit e94ea16

Please sign in to comment.