How are you running Flagsmith
Describe the bug
When editing an existing segment (e.g. adding or removing a trait rule), the audit log records an incorrect "New segment created" event in addition to the expected "Segment updated" event.
Editing a segment should only produce a modification/update event.
Steps To Reproduce
- Create a segment
- Edit the segment (e.g. add a trait condition)
- Save the segment
- Check the audit log
Expected behavior
A single "Segment updated" event appears in the audit log.
Screenshots
Two events appear:
- "New segment with the same name created" (incorrect)
- "Segment updated"
