Bug fixes
This commit is contained in:
@@ -260,7 +260,9 @@ class Main extends React.Component {
|
|||||||
refreshListings(more = false) {
|
refreshListings(more = false) {
|
||||||
console.log('refreshListings');
|
console.log('refreshListings');
|
||||||
|
|
||||||
this.loadPins();
|
if (!more) {
|
||||||
|
this.loadPins();
|
||||||
|
}
|
||||||
|
|
||||||
const map = this.map;
|
const map = this.map;
|
||||||
const {
|
const {
|
||||||
|
|||||||
@@ -80,9 +80,6 @@ const listingsLoaded = ({ type, action }, component) => {
|
|||||||
listings: action.more ? (new Map([...component.state.listings, ...currentListings])) : currentListings,
|
listings: action.more ? (new Map([...component.state.listings, ...currentListings])) : currentListings,
|
||||||
loadingMore: false,
|
loadingMore: false,
|
||||||
totalCount: action.totalCount
|
totalCount: action.totalCount
|
||||||
}, () => {
|
|
||||||
component.markers = action.newMarkers;
|
|
||||||
console.log('ALL LOADED', component.state.listings);
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user