natcap / urban-online-workflow

This repository hosts the beta implementation of the Urban Online ES Workflow. The project is intended to give urban planners the ability to create and assess scenarios using InVEST Urban models.
1 stars 5 forks source link

Unexpected behavior when selecting parcels while zoomed out #95

Closed dcdenu4 closed 4 months ago

dcdenu4 commented 1 year ago

When interacting with the map, if I stay zoomed out a bit and try selecting parcels I was getting no feedback. After zooming in and selecting parcels, which worked, I zoomed back out a little and then experienced the wrong parcels being highlighted from where I was clicking.

A few error messages I noticed in the console:

Warning: Each child in a list should have a unique "key" prop.

Check the render method of `StudyAreaTable`. See https://reactjs.org/link/warning-keys for more information.
    at tr
    at StudyAreaTable (http://localhost:3000/src/edit/studyAreaTable.jsx:25:5)
    at div
    at div
    at div
    at Tabs2 (http://localhost:3000/node_modules/.vite/deps/@blueprintjs_core.js?v=afe8562a:18650:24)
    at div
    at EditMenu (http://localhost:3000/src/edit/edit.jsx:30:5)
    at div
    at div
    at App (http://localhost:3000/src/App.jsx:23:37)
Uncaught (in promise) TypeError: Reduce of empty array with no initial value
    at Array.reduce (<anonymous>)
    at map.jsx:304:30
(anonymous) @ map.jsx:304
davemfish commented 4 months ago

@dcdenu4 I'm going to close this as it does seem to be reproducible. Feel free to re-open and assign a milestone if it is reproducible though.