Bug fixes

This commit is contained in:
Edin Dazdarevic
2017-04-07 23:14:37 +02:00
parent aeca7b1b75
commit a1e4a35d17
2 changed files with 3 additions and 4 deletions

View File

@@ -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 {

View File

@@ -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);
});
};