Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
k-rajat19 committed Dec 28, 2024
1 parent 2930652 commit ae6ba64
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ export const filterRowTreeFromGroupingColumns = (
const shouldFilterGroup = (node: GridTreeNode): boolean => {
if (node.type === 'group' && node.isAutoGenerated) {
const groupingCriteria = getGroupingCriteria();
if(!groupingCriteria) {
return false
if (!groupingCriteria) {
return false;
}
const groupingField = getRowGroupingFieldFromGroupingCriteria(groupingCriteria)
const groupingField = getRowGroupingFieldFromGroupingCriteria(groupingCriteria);
const groupFilterItems: string[] = [groupingField];
const leafFilterItems: string[] = [];
filterModel.items.forEach((item) => {
Expand All @@ -145,12 +145,12 @@ export const filterRowTreeFromGroupingColumns = (
return false;
}

const nodeGroupingField = getRowGroupingFieldFromGroupingCriteria(node.groupingField);
const nodeGroupingField = getRowGroupingFieldFromGroupingCriteria(node.groupingField);

if (rowGroupingColumnMode === 'multiple') {
return nodeGroupingField === groupFilterItems[groupFilterItems.length-1];
return nodeGroupingField === groupFilterItems[groupFilterItems.length - 1];
}
return nodeGroupingField === groupFilterItems[0]
return nodeGroupingField === groupFilterItems[0];
}

return false;
Expand Down Expand Up @@ -191,7 +191,7 @@ export const filterRowTreeFromGroupingColumns = (
let filteredChildrenCount = 0;
let filteredDescendantCount = 0;

if (shouldFilterParent && node.type !=='footer') {
if (shouldFilterParent && node.type !== 'footer') {
isPassingFiltering = isParentPassingFilter;
allowGroupToFilter = shouldFilterParent;
}
Expand Down

0 comments on commit ae6ba64

Please sign in to comment.