Skip to content

Commit

Permalink
reworks data checks with new data structure
Browse files Browse the repository at this point in the history
  • Loading branch information
jomurgel committed Sep 21, 2018
1 parent fa110b8 commit 3a080eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/search-edit-component/post-render.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ class PostRenderer extends Component {
}

render() {
const selectedResults = JSON.parse( this.props.posts );
const selectedResults = this.props.selectedResults;

return (
( undefined !== selectedResults && 0 < selectedResults.length ) ? (
( null !== selectedResults ) ? (
selectedResults.map( post =>
this.displayResultMarkup( post )
)
Expand Down

0 comments on commit 3a080eb

Please sign in to comment.