From a1e4a35d179c7ed688523176fdb2aaec608cbc5d Mon Sep 17 00:00:00 2001 From: Edin Dazdarevic Date: Fri, 7 Apr 2017 23:14:37 +0200 Subject: [PATCH] Bug fixes --- web/components/Main.js | 4 +++- web/lib/handlers.js | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/web/components/Main.js b/web/components/Main.js index b3339f2..fb7def7 100644 --- a/web/components/Main.js +++ b/web/components/Main.js @@ -260,7 +260,9 @@ class Main extends React.Component { refreshListings(more = false) { console.log('refreshListings'); - this.loadPins(); + if (!more) { + this.loadPins(); + } const map = this.map; const { diff --git a/web/lib/handlers.js b/web/lib/handlers.js index c33a0cc..d9f3370 100644 --- a/web/lib/handlers.js +++ b/web/lib/handlers.js @@ -80,9 +80,6 @@ const listingsLoaded = ({ type, action }, component) => { listings: action.more ? (new Map([...component.state.listings, ...currentListings])) : currentListings, loadingMore: false, totalCount: action.totalCount - }, () => { - component.markers = action.newMarkers; - console.log('ALL LOADED', component.state.listings); }); };