Skip to content

Commit

Permalink
Add null and undefined checking to result in filter (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas-Dunker authored Oct 24, 2023
1 parent 17d1010 commit 550b8f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/ResultsPage/ResultsLoader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function ResultsLoader({
(result) =>
result !== null &&
result !== undefined &&
result.class.subject !== 'NULL'
result?.class?.subject !== 'NULL'
)
.map((result) => {
return (
Expand Down

0 comments on commit 550b8f6

Please sign in to comment.