Skip to content

Commit

Permalink
fix: handle skin change
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmcquade committed Sep 18, 2024
1 parent 27712b0 commit f72b682
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/shared/services/skin/skin.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { AppConfigService } from "../app-config/app-config.service";
import { TemplateService } from "../../components/template/services/template.service";
import { ThemeService } from "src/app/feature/theme/services/theme.service";
import { SyncServiceBase } from "../syncService.base";
import { DeploymentService } from "../deployment/deployment.service";

@Injectable({
providedIn: "root",
Expand All @@ -19,8 +20,9 @@ export class SkinService extends SyncServiceBase {
private revertOverride: RecursivePartial<IAppConfig> = {};

constructor(
private localStorageService: LocalStorageService,
private appConfigService: AppConfigService,
private deploymentService: DeploymentService,
private localStorageService: LocalStorageService,
private templateService: TemplateService,
private themeService: ThemeService
) {
Expand Down Expand Up @@ -81,7 +83,7 @@ export class SkinService extends SyncServiceBase {
*/
private generateOverrideConfig(skin: IAppSkin) {
// Merge onto new object to avoid changing stored revertOverride
const base: RecursivePartial<IAppConfig> = {};
const base: RecursivePartial<IAppConfig> = this.deploymentService.config.app_config || {};
return deepMergeObjects(base, this.revertOverride, skin.appConfig);
}

Expand Down

0 comments on commit f72b682

Please sign in to comment.