diff --git a/example/index.html b/example/index.html index 013b5750..e7a96279 100644 --- a/example/index.html +++ b/example/index.html @@ -12,9 +12,6 @@ _posts: { "2015-02-14-this-is-a-post.md": { content: "---\ntitle: This is a YAML front matter post\nimage: /nf-logo.png\ndate: 2015-02-14T00:00:00.000Z\n---\n\n# I Am a Title in Markdown\n\nHello, world\n\n* One Thing\n* Another Thing\n* A Third Thing\n" - }, - "2015-02-14-this-is-test-post.md": { - content: "---\ntitle: This is a test post\nimage: /Photo 1-lobby_FS.jpg\ndate: 2015-02-14T00:00:00.000Z\nsomefield: null\n---\n\n# I Am a Title in Markdown\n\nHello, world\n\n* One Thing\n* Another Thing\n* A Third Thing\n" }, "2015-02-15-this-is-a-json-frontmatter-post.md": { content: "{\n\"title\": \"This is a JSON front matter post\",\n\"image\": \"/nf-logo.png\",\n\"date\": \"2015-02-15T00:00:00.000Z\"\n}\n\n# I Am a Title in Markdown\n\nHello, world\n\n* One Thing\n* Another Thing\n* A Third Thing\n" diff --git a/src/components/EntryListing/EntryListing.js b/src/components/EntryListing/EntryListing.js index b9ce1203..93cb1504 100644 --- a/src/components/EntryListing/EntryListing.js +++ b/src/components/EntryListing/EntryListing.js @@ -57,7 +57,7 @@ export default class EntryListing extends React.Component { : inferedFields.remainingFields && inferedFields.remainingFields.map(f => (

{f.get('label')}:{' '} - { entry.getIn(['data', f.get('name')], '')?entry.getIn(['data', f.get('name')], '').toString():'' } + { (entry.getIn(['data', f.get('name')]) || '').toString() }

)) }