Skip to content

Commit 7e0489e

Browse files
committed
up
1 parent 3afaa34 commit 7e0489e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/core/project_config/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ export const createProjectConfig = function(datafileObj?: JSON, datafileStr: str
148148

149149
// Copy experimentIds to experimentsIds in each event to fix typo in property name
150150
// https://github.com/optimizely/javascript-sdk/issues/991
151+
if (!projectConfig.events) {
152+
projectConfig.events = [];
153+
}
154+
151155
projectConfig.events.forEach(event => {
152156
event.experimentsIds = event.experimentIds;
153157
});

0 commit comments

Comments
 (0)