Skip to content

Commit ec7748a

Browse files
authored
Merge pull request #1405 from VEuPathDB/fix-oopsie-from-1396
Make table search null-safe
2 parents f976e83 + 97c5109 commit ec7748a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/libs/wdk-client/src/Views/Records/RecordTable/RecordTable.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ class RecordTable extends Component {
265265
: displayableAttributes;
266266
const filteredRows = sortedMesaRows.filter((row) => {
267267
return searchableAttributes.some((attr) =>
268-
regex.test(row[attr.name].text ?? row[attr.name])
268+
regex.test(row[attr.name]?.text ?? row[attr.name])
269269
);
270270
});
271271

0 commit comments

Comments
 (0)