diff --git a/src/app/components/calculator-list/calculator-list.component.ts b/src/app/components/calculator-list/calculator-list.component.ts index 7e3ad572542450414bba6a72f86336a2090bb250..a423ab9e5e78d9652c3d8cfc368336fd811042d7 100644 --- a/src/app/components/calculator-list/calculator-list.component.ts +++ b/src/app/components/calculator-list/calculator-list.component.ts @@ -64,11 +64,14 @@ export class CalculatorListComponent implements OnInit { } // extra card for unused calculators if (unusedCalculators.length > 0) { - const unusedTheme = themes.find(i => i.name === undefined); + const unusedThemeConfig = themes.find(i => i.name === undefined); + const unusedTheme: any = {}; unusedTheme.calculators = []; unusedTheme.title = ServiceFactory.instance.i18nService.localizeText("INFO_THEME_MODULES_INUTILISES_TITRE"); unusedTheme.description = ServiceFactory.instance.i18nService.localizeText("INFO_THEME_MODULES_INUTILISES_DESCRIPTION"); - unusedTheme.image.path = "assets/images/themes/" + unusedTheme.image.path; + unusedTheme.image = { + path: "assets/images/themes/" + unusedThemeConfig.image.path + }; for (const t of unusedCalculators) { if (t !== CalculatorType.Structure) {