Skip to content

Commit c40f020

Browse files
fix: restore missing allFlags implementation logic
1 parent ce4a44f commit c40f020

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,10 @@ function initialize(env, context, specifiedOptions, platform, extraOptionDefs) {
411411

412412
const allFlags = flagStore.getAll();
413413

414+
if (!allFlags) {
415+
return results;
416+
}
417+
414418
for (const key in allFlags) {
415419
results[key] = variationDetailInternal(key, null, !options.sendEventsOnlyForVariation, false, true, false).value;
416420
}

0 commit comments

Comments
 (0)