If you create an experiment, save it as a draft, then go back into edit mode to add, rename, or remove variants, clicking Save draft results in error message: Cant' update feature_flag_variants on Experiment:
That error is unexpected by the user because it conflicts with the info box on draft experiments:
The variants also cannot be edited on the Feature Flag with the experiment in draft mode:
Bug Description
Bug description
If you create an experiment, save it as a draft, then go back into edit mode to add, rename, or remove variants, clicking
Save draft
results in error message:Cant' update feature_flag_variants on Experiment
:That error is unexpected by the user because it conflicts with the info box on draft experiments:![CleanShot 2024-06-28 at 15 19 09@2x](https://github.com/PostHog/posthog/assets/227448/9ecfcf83-2f7c-4dc3-acab-3c36c5a6cad1)
The variants also cannot be edited on the Feature Flag with the experiment in draft mode:![CleanShot 2024-06-28 at 15 15 26@2x](https://github.com/PostHog/posthog/assets/227448/0cbce5c3-cc66-404a-bd72-d527e5852167)
How to reproduce
Save as draft
Additional context
From: https://posthoghelp.zendesk.com/agent/tickets/15183
Debug info