Commit c77d31f5 authored by Andrei Mondoc's avatar Andrei Mondoc
Browse files

show summary if we have one

parent 60f63019
...@@ -12,7 +12,7 @@ const ContributionPageOption = props => { ...@@ -12,7 +12,7 @@ const ContributionPageOption = props => {
id:{data.id} id:{data.id}
</span> </span>
<span style={{fontSize: '12px', display: 'block'}}> <span style={{fontSize: '12px', display: 'block'}}>
{data.intro_text.slice(0, 40)}... {data.intro_text ? data.intro_text.slice(0, 40) : ''}...
</span> </span>
</components.Option> </components.Option>
} }
......
...@@ -13,7 +13,7 @@ const EventOption = props => { ...@@ -13,7 +13,7 @@ const EventOption = props => {
{data['event_type.label']}: {date('F j, Y g:i a', data.start_date)} | id:{data.id} {data['event_type.label']}: {date('F j, Y g:i a', data.start_date)} | id:{data.id}
</span> </span>
<span style={{fontSize: '12px', display: 'block'}}> <span style={{fontSize: '12px', display: 'block'}}>
{data.summary.slice(0, 40)}... {data.summary ? data.summary.slice(0, 40) : ''}...
</span> </span>
</components.Option> </components.Option>
} }
......
Supports Markdown
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