From b4a3046dc5c9f25c16ad383e5825eb6a6f5af19d Mon Sep 17 00:00:00 2001
From: Chris Lawton <chris.lawton@torchbox.com>
Date: Wed, 23 Jan 2019 17:06:21 +0000
Subject: [PATCH] add missing ref and update items after rebase

---
 .../src/app/src/components/Listing/index.js           | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/opentech/static_src/src/app/src/components/Listing/index.js b/opentech/static_src/src/app/src/components/Listing/index.js
index 02e7453ef..9d254f897 100644
--- a/opentech/static_src/src/app/src/components/Listing/index.js
+++ b/opentech/static_src/src/app/src/components/Listing/index.js
@@ -19,6 +19,11 @@ export default class Listing extends React.Component {
         handleRetry: PropTypes.func,
     };
 
+    constructor(props) {
+        super(props);
+        this.listRef = React.createRef();
+    }
+
     renderListItems() {
         const {
             isError,
@@ -44,7 +49,7 @@ export default class Listing extends React.Component {
         }
 
         return (
-            <ul className="listing__list" ref={this.myRef}>
+            <ul className="listing__list" ref={this.listRef}>
                 {items.map(v => renderItem(v))}
             </ul>
         );
@@ -67,9 +72,9 @@ export default class Listing extends React.Component {
             <div className="listing">
                 <div className="listing__header">
                     <ListingDropdown
-                        list={this.myRef.current}
+                        list={this.listRef.current}
                         error={this.props.isLoading}
-                        items={this.state.orderedItems}
+                        items={this.props.items}
                         isLoading={this.props.isLoading}
                     />
                 </div>
-- 
GitLab