Show only what's visible in the current result set

This commit is contained in:
Edin Dazdarevic
2017-04-05 15:11:21 +02:00
parent 15dc596f3d
commit e3e5b4ac96
3 changed files with 78 additions and 22 deletions

View File

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