Only count experiment settings from active experiments

This commit is contained in:
Chloe Herd 2023-10-25 17:08:58 -04:00
parent 75b47e2ebd
commit 1cf6b80f19

View file

@ -697,6 +697,7 @@ export const getters = {
},
experimentSettings: (state) =>
state.applicationUser.experiments
.filter((x) => !!x.isActive)
.map((x) => x.settings)
.reduce((r, c) => Object.assign(r, c), {}) ?? {},
};