Skip to content
This repository has been archived by the owner on Sep 5, 2018. It is now read-only.

Commit

Permalink
Write 'untitled' for untitled entry links
Browse files Browse the repository at this point in the history
fix #22
  • Loading branch information
Ben Iofel authored and Khaledgarbaya committed May 24, 2017
1 parent 6a5f1bc commit 7019dfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/entries/EntryLinkContainer.js
Expand Up @@ -30,7 +30,7 @@ export default createClass({
const displayField = this.props.entryLink.fields[this.state.contentType.displayField]
const entryLinkSys = this.props.entryLink.sys
return <Link to={{pathname: `/entries/by-content-type/${entryLinkSys.contentType.sys.id}/${entryLinkSys.id}`, query: this.props.location.query}}>
{displayField}
{displayField || "untitled"}
</Link>
}
}
Expand Down

0 comments on commit 7019dfe

Please sign in to comment.