Skip to content

Commit

Permalink
Merge pull request #38082 from Expensify/vit-fixTS
Browse files Browse the repository at this point in the history
[NoQA] Cast list key to string in tests
  • Loading branch information
luacmartins authored Mar 11, 2024
2 parents 7787106 + 07801dd commit 4239b37
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/perf-test/SelectionList.perf-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ function SelectionListWrapper({canSelectMultiple}: SelectionListWrapperProps) {
];

const onSelectRow = (item: ListItem) => {
if (!item.keyForList) {
return;
}

if (canSelectMultiple) {
if (selectedIds.includes(item.keyForList)) {
setSelectedIds(selectedIds.filter((selectedId) => selectedId === item.keyForList));
Expand Down

0 comments on commit 4239b37

Please sign in to comment.