Closed ralexrdz closed 6 years ago
let placesToSave = relevantPlaces.filter(placeToSave => !this.places.find(pl => pl._id === placeToSave._id || // HERE (placeToSave.googlePlaceId && pl.googlePlaceId === placeToSave.googlePlaceId) ) )
I think we need to keep in mind cases where we want to copy municipality or state to places (once someone selects it as location). Possibly that Object.assign() was related to that.
Object.assign()