[develop | DONE | FIXED] customCss add checks if identity/customCss not defined

This commit is contained in:
argirok 2024-09-09 12:54:04 +03:00
parent 4727fb7a10
commit c507f934a0
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ export class CustomizationOptions {
if (current.identity && current.identity.mainColor && current.identity.secondaryColor) {
updated = new CustomizationOptions(current.identity.mainColor, current.identity.secondaryColor);
}
if(!current.identity.customCss){
if(current.identity && !current.identity.customCss){
current.identity.customCss = defaultCO.identity.customCss;
}
if (!current.backgrounds) {