Deleting a condition in monitor criteria always deletes the last one #550

Closed
opened 2026-04-05 16:20:28 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @sevensolutions on 2/9/2025

Describe the bug
If you have a monitor criteria with multiple conditions and you want to delete eg. the first one of them using the "Delete" button, it always deletes the last one.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new Monitor
  2. In the monitoring criteria section there are two conditions by default
  3. Try to delete the first one using the "Delete" button on the right side.
  4. Now the last one has been deleted, instead of the first one.

Expected behavior
I expect the delete button to delete the corresponding condition where the button is located.

Screenshots

Image

Desktop (please complete the following information):

  • OS: macOS
  • Browser Chrome
  • Version [e.g. 22]
  • OneUptime Version: 7.0.3621

Deployment Type
Self Hosted, using docker compose

*Originally created by @sevensolutions on 2/9/2025* **Describe the bug** If you have a monitor criteria with multiple conditions and you want to delete eg. the first one of them using the "Delete" button, it always deletes the last one. **To Reproduce** Steps to reproduce the behavior: 1. Create a new Monitor 2. In the monitoring criteria section there are two conditions by default 3. Try to delete the first one using the "Delete" button on the right side. 4. Now the last one has been deleted, instead of the first one. **Expected behavior** I expect the delete button to delete the corresponding condition where the button is located. **Screenshots** ![Image](https://github.com/user-attachments/assets/3e9df9b3-feca-413c-b951-050099a484b0) **Desktop (please complete the following information):** - OS: macOS - Browser Chrome - Version [e.g. 22] - OneUptime Version: 7.0.3621 **Deployment Type** Self Hosted, using docker compose
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/oneuptime#550