Skip to content

Editing a phenomenon unit from the UI results in changing the sensor type and vice-verca #831

@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

When the user tries to edit the sensor phenomenons, if they try to change the unit, and clicks save, it updates the value for the sensortype.

Image- Before saving the updates

Image - after changing the unit and saving it.

Expected Behavior

  • Updating the unit updates the unit filed and not the sensortype.
  • Updating the sensortype should update the type field.

Steps to reproduce

  1. Go to /device/avzvdkueniz44xvgtu30a1wb/edit/sensors route.
  2. Try to edit the phenomenon unit and type.
  3. Click save.

Environment

Windows 11, Chrome Version 145.0.7632.160

Console Output

Workaround

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    👀 Ready for Review

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions