fix syntax is null bug in detailsExpander

closes #495
This commit is contained in:
Collin Barrett 2018-09-18 18:47:25 -05:00
parent 7303a283dc
commit ae1fbd0921

View file

@ -29,11 +29,13 @@ export const InfoCard = (props: IProps) => {
return <div className="col-9">
<Tags tags={props.tags}/>
<div className="d-md-none">
{props.syntax.supportedSoftware.map(
(s: ISyntaxSupportedSoftwareDto, i: number) =>
<a href={s.homeUrl} key={i}>
<SoftwareIcon id={s.id} key={i}/>
</a>)}
{props.syntax
? props.syntax.supportedSoftware.map(
(s: ISyntaxSupportedSoftwareDto, i: number) =>
<a href={s.homeUrl} key={i}>
<SoftwareIcon id={s.id} key={i}/>
</a>)
: null}
</div>
<Description {...props} url={props.descriptionSourceUrl}/>
<ul className="list-group list-group-flush">