[bug] Unsaved changes alert triggered when a new required template is added
How to replicate
- Create a device with default organization
- Create a required template for default organization
- Open the device detail page, do not change anything, reload or click on anywhere to go to a different page.
Actual behavior
Unsaved changes alert is triggered.
Reason
The JS adds the required template created and updates the config-0-templates field
Hi @pandafy , I believe this might be a duplicate of #469 and should already be resolved, as I wasn’t able to reproduce the issue. If it’s still occurring, could you please share more context or steps to help replicate it?
EDIT : Replicated the issue
I tried to reproduce the issue but was unable to. I'm attaching a video for reference.
https://github.com/user-attachments/assets/eebe78a9-0ee8-43fc-a287-ad9a5404c65d
Thanks @DragnEmperor @Dhanus3133.