Show only what's visible in the current result set
This commit is contained in:
@@ -52,7 +52,7 @@ const viewListingDetails = ({ type, action }, component) => {
|
||||
};
|
||||
|
||||
const listingsLoaded = ({ type, action }, component) => {
|
||||
const currentListings = new Map(); //component.state.listings;
|
||||
const currentListings = new Map();
|
||||
|
||||
for (const listing of action.listings) {
|
||||
currentListings.set(listing.url, listing);
|
||||
@@ -60,6 +60,8 @@ const listingsLoaded = ({ type, action }, component) => {
|
||||
|
||||
component.setState({
|
||||
listings: currentListings
|
||||
}, () => {
|
||||
component.markers = action.newMarkers;
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user