Skip to content

Commit

Permalink
only fire for 2 grouped filters
Browse files Browse the repository at this point in the history
  • Loading branch information
shogunpurple committed Dec 9, 2024
1 parent e5453cc commit 7d5ca84
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const EXCLUDED_EVENTS: Event[] = [
Event.DATASOURCE_UPDATED,
Event.QUERY_UPDATED,
Event.VIEW_UPDATED,
Event.VIEW_FILTER_UPDATED,
Event.VIEW_CALCULATION_UPDATED,
Event.AUTOMATION_TRIGGER_UPDATED,
Event.USER_GROUP_UPDATED,
Expand Down
2 changes: 1 addition & 1 deletion packages/server/src/api/controllers/view/viewsV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ async function handleViewFilterEvents(existingView: ViewV2, view: ViewV2) {
const properties = { filterGroups, tableId: view.tableId }
if (
filterGroups >= 2 &&
((existingView && existingView?.queryUI?.groups?.length) || 0)
filterGroups > (existingView?.queryUI?.groups?.length || 0)
) {
await events.view.filterUpdated(properties)
}
Expand Down

0 comments on commit 7d5ca84

Please sign in to comment.