[bug fix][xs]: don't fail if dataset has no owner org.
This commit is contained in:
@@ -3,10 +3,15 @@ import Link from 'next/link'
|
|||||||
export default function Org({ org }) {
|
export default function Org({ org }) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<img src={org.image_url} className="h-5 w-5 mr-2 inline-block" />
|
{org
|
||||||
<Link href={`/@${org.name}`}>
|
? <>
|
||||||
<a className="font-semibold text-primary underline">{ org.title || org.name }</a>
|
<img src={org.image_url || 'https://datahub.io/static/img/datahub-cube-edited.svg'} className="h-5 w-5 mr-2 inline-block" />
|
||||||
</Link>
|
<Link href={`/@${org.name}`}>
|
||||||
|
<a className="font-semibold text-primary underline">{ org.title || org.name }</a>
|
||||||
|
</Link>
|
||||||
|
</>
|
||||||
|
: ''
|
||||||
|
}
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user