Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/components/Search/SearchList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<Set<string>>(() => new Set());

const onToggleGroup = useCallback((key: string) => {
Expand All @@ -313,7 +312,7 @@ function SearchList({
});
}, []);

const shouldSplitGroups = isGroupByActive && isLargeScreenWidth;
const shouldSplitGroups = !!groupBy && isLargeScreenWidth;
Comment thread
Krishna2323 marked this conversation as resolved.

const {splitData: listData, stickyHeaderIndices} = useMemo(() => {
if (!shouldSplitGroups) {
Expand Down
Loading