mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-19 00:15:43 +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,
|
: options.authentication,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const { ui } = options;
|
const ui = options.ui || {};
|
||||||
|
|
||||||
const importSetting: IImportOption = mergeAll([
|
const importSetting: IImportOption = mergeAll([
|
||||||
defaultImport,
|
defaultImport,
|
||||||
options.import,
|
options.import,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const { experimental } = options;
|
const experimental = options.experimental || {};
|
||||||
|
|
||||||
const email: IEmailOption = mergeAll([defaultEmail, options.email]);
|
const email: IEmailOption = mergeAll([defaultEmail, options.email]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user