microsoft / iot-cardboard-js

iot-cardboard-js is a React library for building experiences for IoT applications
https://main--601c6b2fcd385c002100f14c.chromatic.com/
MIT License
84 stars 26 forks source link

Search in the behaviors list results in editing the incorrect behavior #672

Open darsney opened 2 years ago

darsney commented 2 years ago

Describe the bug When you search in the behaviors list and it results in a filtered list, clicking a behavior to edit it actually edits the first behavior of the unedited list (index 0 from the global list of behaviors, not the filtered list, for example)

To Reproduce Steps to reproduce the behavior:

  1. Go to the Contoso Factory mock scene here
  2. Search for "Salt" in the behaviors list image
  3. Select the first behavior (Salt Machine Flow)
  4. Notice that the edited behavior is actually Pasteurization Machine Outflow image

Expected behavior Clicking a behavior when filtering is used should select the behavior you clicked

abalogun-dev commented 2 years ago

I'm not able to repro this issue. When i follow the steps, the expected behavior occurs