Skip to content

UI state not updated correctly when two consecutive sensors are deleted simultaneously #849

@JerryVincent

Description

@JerryVincent

Before You Proceed

  • I have cleared my browsers cache and the issue still remains
  • I have tried a different browser to see if it is related
  • I have searched existing issues to avoid duplicates

Description

Deleting two sensors simultaneously and saving won't actually delete the second sensor from UI. This second sensor is only removed once we reload the route.

Expected Behavior

Deleting multiple sensor should result in the actual deletion of sensors both from the database and from the UI.

  • before deleting multiple sensors.
Image - after deleting the sensors. Image

Steps to reproduce

  1. Go to dashboard.
  2. Select a Device with more than one sensor and from the actions tab hit edit.
  3. Go to /device/deviceId/edit/sensors route.
  4. Delete two sensors and hit save on the top right.
  5. You can now see a ghost sensor in the UI and reloading the page makes it disappear.

Environment

Windows 11, Chrome Version 146.0.7680.164

Console Output

Workaround

No response

Additional Information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions