Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit 330901d

Browse files
authored
Allow datasets without distributions (#44)
1 parent 00d0ddf commit 330901d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/dataset/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const Dataset = props => {
118118
<h1>{item.title}</h1>
119119
{theme.length && <div className="dc-item-theme">{themes(theme)}</div>}
120120
<Text value={item.description} />
121-
{hasWindow &&
121+
{hasWindow && item.distribution &&
122122
item.distribution.map(dist => {
123123
return <ResourceTemplate key={dist.identifier} resource={dist} identifier={dist.identifier} />;
124124
})}

0 commit comments

Comments
 (0)