From 171673695345025baf4f45fc968fc9aa9052fa13 Mon Sep 17 00:00:00 2001 From: Ken Jannette Date: Fri, 20 Apr 2018 13:52:28 -0400 Subject: [PATCH] Added conditional to search results render in SearchPage module --- src/SearchPage.js | 40 ++++++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/src/SearchPage.js b/src/SearchPage.js index e8c74b2..1f3137f 100644 --- a/src/SearchPage.js +++ b/src/SearchPage.js @@ -36,28 +36,32 @@ class SearchPage extends Component {
    - {this.results.map((result) => + if (this.results) { -
  1. -
    -
    -
    -
    - + {this.results.map((result) => + +
  2. +
    +
    +
    +
    + +
    +
    {result.title}
    +
    {result.authors}
    -
    {result.title}
    -
    {result.authors}
    -
- + + + )} + } - )}