Skip to content

Commit

Permalink
don't include deleted flags in allFlags (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-darkly committed Apr 29, 2022
1 parent 85706d6 commit 81864f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ export function initialize(env, user, specifiedOptions, platform, extraOptionDef
}

for (const key in flags) {
if (utils.objectHasOwnProperty(flags, key)) {
if (utils.objectHasOwnProperty(flags, key) && !flags[key].deleted) {
results[key] = variationDetailInternal(key, null, !options.sendEventsOnlyForVariation).value;
}
}
Expand Down

0 comments on commit 81864f5

Please sign in to comment.