Merge pull request #17434 from overleaf/ab-allow-analytics-inactive-test

[web] Allow analytics to be enabled for inactive tests

GitOrigin-RevId: f854fd6532357c4291f2785b950eac2478cfbae0
This commit is contained in:
Jessica Lawshe
2024-03-13 08:42:40 -05:00
committed by Copybot
parent 0f79e483d8
commit 39b0378ec1
@@ -152,7 +152,7 @@ async function updateSplitTestConfig({ name, configuration, comment }, userId) {
versionNumber: lastVersion.versionNumber + 1,
phase: configuration.phase,
active: configuration.active,
analyticsEnabled: configuration.active && configuration.analyticsEnabled,
analyticsEnabled: configuration.analyticsEnabled,
variants: updatedVariants,
author: userId,
comment,