Skip to content

Commit 0828ecd

Browse files
mountinyOSBotify
authored andcommitted
Merge pull request #62111 from nkdengineer/fix/62086
[CP Staging] fix all checkbox is auto checked when only having empty report (cherry picked from commit 7595f0f) (cherry-picked to staging by francoisl)
1 parent 5ec7307 commit 0828ecd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Search/SearchList.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,11 +357,12 @@ function SearchList(
357357
{canSelectMultiple && (
358358
<Checkbox
359359
accessibilityLabel={translate('workspace.people.selectAll')}
360-
isChecked={selectedItemsLength === flattenedTransactions.length}
360+
isChecked={flattenedTransactions.length > 0 && selectedItemsLength === flattenedTransactions.length}
361361
isIndeterminate={selectedItemsLength > 0 && selectedItemsLength !== flattenedTransactions.length}
362362
onPress={() => {
363363
onAllCheckboxPress();
364364
}}
365+
disabled={flattenedTransactions.length === 0}
365366
/>
366367
)}
367368

0 commit comments

Comments
 (0)