diff --git a/tests/perf-test/SelectionList.perf-test.tsx b/tests/perf-test/SelectionList.perf-test.tsx index 63b6185351cb..ceb54abb5117 100644 --- a/tests/perf-test/SelectionList.perf-test.tsx +++ b/tests/perf-test/SelectionList.perf-test.tsx @@ -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));