Skip to content

Commit

Permalink
Add null and undefined checking to result in filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas-Dunker committed Oct 24, 2023
1 parent 17d1010 commit 63cfc5b
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 63cfc5b

Please sign in to comment.