Skip to content

Commit

Permalink
chore: code tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismclarke committed Sep 18, 2024
1 parent fa18902 commit 6eea0a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/shared/services/skin/skin.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class SkinService extends SyncServiceBase {
private generateRevertConfig(skin: IAppSkin) {
const revert: RecursivePartial<IAppConfig> = {};
const config = this.appConfigService.appConfig();
for (const key of Object.keys(skin.appConfig)) {
for (const key of Object.keys(skin.appConfig || {})) {
// When reverting the skin, should target the current config value unless
// previously overridden (in which case target initial value)
const revertTarget = deepMergeObjects({}, config[key], this.revertOverride[key]);
Expand Down

0 comments on commit 6eea0a6

Please sign in to comment.