Commit 92ec2cdd authored by Stefan Probst's avatar Stefan Probst
Browse files

fix: fix for entity.source is nullable

parent 094aece4
......@@ -358,7 +358,7 @@ function ItemPropertiesList({
<SubSectionTitle as="h2">Details</SubSectionTitle>
<VStack as="dl" className="space-y-2 text-sm leading-7">
{/* contributors are a top-level field, not a property */}
{contributors !== undefined && contributors.length > 0 ? (
{contributors != null && contributors.length > 0 ? (
<div>
<dt className="inline mr-2 text-gray-500">Contributors:</dt>
<dd className="inline">
......@@ -385,7 +385,7 @@ function ItemPropertiesList({
) : null}
{/* source is a top-level field, not a property */}
{source !== undefined ? (
{source != null ? (
<div>
<dt className="inline mr-2 text-gray-500">Source:</dt>
<dd className="inline">
......@@ -421,7 +421,7 @@ function ItemPropertiesList({
})}
{/* licenses are a top-level field, not a property */}
{licenses !== undefined && licenses.length > 0 ? (
{licenses != null && licenses.length > 0 ? (
<div>
<dt className="inline mr-2 text-gray-500">Licenses:</dt>
<dd className="inline">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment