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:
parent
b3d168da7a
commit
28d9cc6b03
@ -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]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user