1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-14 00:19:16 +01:00

fix: default to empty object for ui and experimental properties on config

This commit is contained in:
Fredrik Oseberg 2021-05-03 14:20:17 +02:00
parent b3d168da7a
commit 28d9cc6b03

View File

@ -190,14 +190,14 @@ export function createConfig(options: IUnleashOptions): IUnleashConfig {
: options.authentication,
]);
const { ui } = options;
const ui = options.ui || {};
const importSetting: IImportOption = mergeAll([
defaultImport,
options.import,
]);
const { experimental } = options;
const experimental = options.experimental || {};
const email: IEmailOption = mergeAll([defaultEmail, options.email]);