From 19f1d4b4082f29846395dfaec8718fa3618bfa60 Mon Sep 17 00:00:00 2001 From: anuveyatsu Date: Wed, 24 Jun 2020 12:55:29 +0600 Subject: [PATCH] [bug fix][xs]: some datasets may not have owner organization. --- components/home/Recent.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/components/home/Recent.tsx b/components/home/Recent.tsx index bf83cb5c..bc3937f1 100644 --- a/components/home/Recent.tsx +++ b/components/home/Recent.tsx @@ -40,17 +40,19 @@ function Recent() {

Recent Datasets

- {result.results.map((resource, index) => ( + {result.results.map((dataset, index) => (
-

{resource.title}

-

{resource.organization.description}

+

{dataset.title}

+

+ {dataset.organization && dataset.organization.description} +

View Dataset