Skip to content
Snippets Groups Projects
Commit f6456b4d authored by Cindy's avatar Cindy Committed by bouhaddouzay
Browse files

[FIX TRTL-574] don't apply theme when colors are not valid

parent 50947916
No related branches found
No related tags found
No related merge requests found
......@@ -41,8 +41,11 @@ export class GraphicIdentityFormComponent implements OnInit {
}
private applyTheme(): void {
const colors = this.themeService.getThemeColors(this.graphicIdentityForm.get('themeColors').value);
this.themeService.overloadLocalTheme(colors, '#toOverride');
if(this.graphicIdentityForm.valid)
{
const colors = this.themeService.getThemeColors(this.graphicIdentityForm.get('themeColors').value);
this.themeService.overloadLocalTheme(colors, '#toOverride');
}
}
public addOrReplaceLogo(type: AttachmentType, data: File): void {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment