Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/core/bucketer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ export const bucket = function(bucketerParams: BucketerParams): DecisionResponse
const decideReasons: DecisionReason[] = [];
// Check if user is in a random group; if so, check if user is bucketed into a specific experiment
const experiment = bucketerParams.experimentIdMap[bucketerParams.experimentId];
const groupId = experiment['groupId'];
// Optional chaining skips groupId check for holdout experiments; Holdout experimentId is not in experimentIdMap
const groupId = experiment?.['groupId'];
if (groupId) {
const group = bucketerParams.groupIdMap[groupId];
if (!group) {
Expand Down
Loading
Loading