Skip to content

Commit a535a41

Browse files
fix(ref: no-ref): fix config
1 parent ce1abc3 commit a535a41

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

projects/ngx-loader-indicator-lib/src/lib/ngx-loader-indicator.providers.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import {
1010

1111
export function _configFactory(
1212
initConfig: optionsConfig,
13-
configValue: optionsConfig
13+
configValue?: optionsConfig
1414
): optionsConfig {
15-
const loaderStyles: Config['loaderStyles'] | null = configValue.loaderStyles ?? null;
16-
const imgStyles: Config['imgStyles'] | null = configValue.imgStyles ?? null;
17-
const rotate: Config['rotate'] | null = configValue.rotate ?? null;
15+
const loaderStyles: Config['loaderStyles'] | null = configValue?.loaderStyles ?? null;
16+
const imgStyles: Config['imgStyles'] | null = configValue?.imgStyles ?? null;
17+
const rotate: Config['rotate'] | null = configValue?.rotate ?? null;
1818

1919
return {
2020
...initConfig,

0 commit comments

Comments
 (0)