pinballmap / pbm-react

PBM React Native: iOS & Android Apps
https://pinballmap.com/app
GNU General Public License v3.0
33 stars 9 forks source link

Bug: "two children with the same key" when filtering by machine and location has two versions #511

Closed RyanTG closed 1 year ago

RyanTG commented 1 year ago

Steps:

ERROR Warning: Encountered two children with the same key, 6784. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.

bpoore commented 1 year ago

The API is returning the same location more than once: https://pinballmap.com/api/v1/locations/within_bounding_box.json?swlat=34.1298218441[…]156;nelon=-118.39624006301166;by_machine_id=3674;no_details=1

RyanTG commented 1 year ago

Thanks. Resolved via https://github.com/pinballmap/pbm/commit/47e98904df5da007abafc0498aaa2c5330344b03