You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens because after the initial save, the frontend does not save the new ID that the API assigned to condition A. When saving condition B, it sends condition A without an ID, which the API interprets to be an entirely new condition.
First save - in this case, condition 1 existed in the segment before loading. Condition 2was added here.
Second save - condition 3 was added here, but condition 2 is sent again without an ID. This causes condition 2 to get duplicated.
Expected behavior
Don't duplicate conditions.
Screenshots
No response
The text was updated successfully, but these errors were encountered:
How are you running Flagsmith
Describe the bug
dupe.segment.mov
Steps To Reproduce
A
B
A
is now duplicatedThis happens because after the initial save, the frontend does not save the new ID that the API assigned to condition
A
. When saving conditionB
, it sends conditionA
without an ID, which the API interprets to be an entirely new condition.First save - in this case, condition
1
existed in the segment before loading. Condition2
was added here.Second save - condition
3
was added here, but condition2
is sent again without an ID. This causes condition2
to get duplicated.Expected behavior
Don't duplicate conditions.
Screenshots
No response
The text was updated successfully, but these errors were encountered: