From 8abf32c4029fc320c5f0d398828b9fc44a7b8730 Mon Sep 17 00:00:00 2001 From: anuveyatsu Date: Fri, 12 Jun 2020 19:35:37 +0600 Subject: [PATCH] [bug fix][xs]: don't fail if dataset has no owner org. --- components/dataset/Org.tsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/components/dataset/Org.tsx b/components/dataset/Org.tsx index 8187e8d8..af495681 100644 --- a/components/dataset/Org.tsx +++ b/components/dataset/Org.tsx @@ -3,10 +3,15 @@ import Link from 'next/link' export default function Org({ org }) { return ( <> - - - { org.title || org.name } - + {org + ? <> + + + { org.title || org.name } + + + : '' + } ) }