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 bcd5ce1218
commit 310cbe10ba

View file

@ -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,