Skip to content

Commit

Permalink
#39 Small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Quicksaver committed Aug 17, 2018
1 parent b3b2ee6 commit 6f9087b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/homepage/Intro.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ export default class Intro extends BesugoComponent {

getData() {
if (this.isPreview()) {
const { entry } = this.props;
const { entry, getAsset } = this.props;
const data = entry.getIn([ 'data' ]);

return {
ticketurl: '#',
when: data.getIn([ 'when' ]),
where: data.getIn([ 'where' ]),
banner: data.getIn([ 'banner' ]) ? this.props.getAsset(data.getIn([ 'banner' ])).toString() : '',
banner: data.getIn([ 'banner' ]) ? getAsset(data.getIn([ 'banner' ])).toString() : '',
};
}

Expand Down

0 comments on commit 6f9087b

Please sign in to comment.