diff --git a/ui/ui-frontend/projects/identity/src/app/customer/customer-preview/graphic-identity-tab/graphic-identity/graphic-identity-form/graphic-identity-form.component.ts b/ui/ui-frontend/projects/identity/src/app/customer/customer-preview/graphic-identity-tab/graphic-identity/graphic-identity-form/graphic-identity-form.component.ts index 113435f68c128ed32ca120b745e76e033e45cd8b..57055db2fc4d1cc3baf424bd3fc66545414b0295 100644 --- a/ui/ui-frontend/projects/identity/src/app/customer/customer-preview/graphic-identity-tab/graphic-identity/graphic-identity-form/graphic-identity-form.component.ts +++ b/ui/ui-frontend/projects/identity/src/app/customer/customer-preview/graphic-identity-tab/graphic-identity/graphic-identity-form/graphic-identity-form.component.ts @@ -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 {