Describe the bug
In the v2 filters form, if you drag a root item into a group, there will be a validation error on save.
To Reproduce
Steps to reproduce the behavior:
Go to the filters form table in settings
Create a group
Crate root items
Save
Drag a root item inside a group
Save
See error
Expected behavior
Always save corretly
Additional context
This occurs only when dragging existing root items inside a agroup since they preserve their _id. Root items and groups have _id, but the children do not. So a sanitization is needed for this case.
Describe the bug In the v2 filters form, if you drag a root item into a group, there will be a validation error on save.
To Reproduce Steps to reproduce the behavior:
Expected behavior Always save corretly
Additional context This occurs only when dragging existing root items inside a agroup since they preserve their _id. Root items and groups have _id, but the children do not. So a sanitization is needed for this case.