From 8d12f72e61e8073147eaf9dfc988bb0f197ad5fc Mon Sep 17 00:00:00 2001 From: krishna2323 Date: Sat, 13 Jun 2026 06:30:30 +0530 Subject: [PATCH] fix: Restrict sticky group headers to explicit groupBy queries only Signed-off-by: krishna2323 --- src/components/Search/SearchList/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Search/SearchList/index.tsx b/src/components/Search/SearchList/index.tsx index d3dd9cdbb75f..df6f35fcba25 100644 --- a/src/components/Search/SearchList/index.tsx +++ b/src/components/Search/SearchList/index.tsx @@ -298,7 +298,6 @@ function SearchList({ const hasItemsBeingRemoved = prevDataLength && prevDataLength > data.length; const {isEditingCell, wasRecentlyEditingCell} = useEditingCellState(); - const isGroupByActive = !!groupBy || type === CONST.SEARCH.DATA_TYPES.EXPENSE_REPORT; const [expandedGroups, setExpandedGroups] = useState>(() => new Set()); const onToggleGroup = useCallback((key: string) => { @@ -313,7 +312,7 @@ function SearchList({ }); }, []); - const shouldSplitGroups = isGroupByActive && isLargeScreenWidth; + const shouldSplitGroups = !!groupBy && isLargeScreenWidth; const {splitData: listData, stickyHeaderIndices} = useMemo(() => { if (!shouldSplitGroups) {