Bug fixes
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user