Skip to content

Commit 8363581

Browse files
committed
Revert comment and spacing
1 parent dc8c15b commit 8363581

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/x-data-grid-pro/src/hooks/features/columnHeaders/useGridColumnHeaders.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,11 @@ export const useGridColumnHeaders = (props: UseGridColumnHeadersProps) => {
7777
const filterModelItem = filterModel?.items.find(
7878
(it) => it.field === colDef.field && it.operator !== 'isAnyOf',
7979
);
80-
8180
if (filterModelItem != null) {
81+
// there's a valid `filterModelItem` for this column
8282
return filterModelItem;
8383
}
84-
8584
const defaultCachedItem = filterItemsCache[colDef.field];
86-
8785
if (defaultCachedItem != null) {
8886
// there's a cached `defaultItem` for this column
8987
return defaultCachedItem;

0 commit comments

Comments
 (0)