Skip to content

Commit e311854

Browse files
committed
add null check for allExperimentResults
1 parent 1aa33de commit e311854

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/explorer/ExplorerIndividualContent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const ExplorerIndividualContent = () => {
7878
}, [biosamplesData]);
7979

8080
useEffect(() => {
81-
if (!allExperimentResults.length) {
81+
if (!allExperimentResults || !allExperimentResults.length) {
8282
return;
8383
}
8484

0 commit comments

Comments
 (0)