Skip to content

Commit 3029843

Browse files
committed
fix selectionMode turing on when user entering reports page for the first time
1 parent b4141c0 commit 3029843

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/Search/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,11 @@ function Search({queryJSON, searchResults, onSearchListScroll, contentContainerS
206206
}
207207
return;
208208
}
209-
if (selectedKeys.length > 0 && !selectionMode) {
209+
if (selectedKeys.length > 0 && !selectionMode && !isSearchResultsEmpty) {
210210
turnOnMobileSelectionMode();
211211
}
212+
// eslint-disable-next-line react-compiler/react-compiler
213+
// eslint-disable-next-line react-hooks/exhaustive-deps
212214
}, [isSmallScreenWidth, selectedTransactions, selectionMode]);
213215

214216
useEffect(() => {

0 commit comments

Comments
 (0)