Skip to content

Commit c594b07

Browse files
QREPO-405 fix type cast for getDefaultThemeConfig in server loader
1 parent 8143bf2 commit c594b07

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/ngx-translate-loaders/translate-server.loader.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
} from 'node:path';
99

1010
import { TransferState } from '@angular/core';
11+
import { AppConfig } from '@dspace/config/app-config.interface';
1112
import { getDefaultThemeConfig } from '@dspace/config/config.util';
1213
import { TranslateLoader } from '@ngx-translate/core';
1314
import JSON5 from 'json5';
@@ -78,7 +79,7 @@ export class TranslateServerLoader implements TranslateLoader {
7879
}
7980

8081
// Resolve only the active theme's chain (root ancestor → active theme).
81-
const activeName = getDefaultThemeConfig(environment).name;
82+
const activeName = getDefaultThemeConfig(environment as unknown as AppConfig).name;
8283
const orderedThemes = resolveActiveThemeChain(configured, activeName);
8384

8485
// `this.prefix` looks like `dist/server/assets/i18n/`. Theme assets live next to `i18n/`

0 commit comments

Comments
 (0)