From 1630f557b5543a2cf171306123cce6cfd20cf0a1 Mon Sep 17 00:00:00 2001
From: Albert <Albert.Bruns@mgm-tp.com>
Date: Fri, 4 Apr 2025 09:27:26 +0200
Subject: [PATCH] OZG-7974 small fix

---
 .../lib/form/formcontrol-editor.abstract.component.spec.ts  | 6 +++---
 .../src/lib/form/formcontrol-editor.abstract.component.ts   | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/alfa-client/libs/design-component/src/lib/form/formcontrol-editor.abstract.component.spec.ts b/alfa-client/libs/design-component/src/lib/form/formcontrol-editor.abstract.component.spec.ts
index cee669970f..e14da6e4b8 100644
--- a/alfa-client/libs/design-component/src/lib/form/formcontrol-editor.abstract.component.spec.ts
+++ b/alfa-client/libs/design-component/src/lib/form/formcontrol-editor.abstract.component.spec.ts
@@ -92,7 +92,7 @@ describe('FormControlEditorAbstractComponent', () => {
     it('should remove fieldControl errors', () => {
       component.fieldControl.setErrors({ fehler: 'this is an validation error' });
 
-      component.removeErrors();
+      component._removeErrors();
 
       expect(component.fieldControl.errors).toBeNull();
     });
@@ -100,7 +100,7 @@ describe('FormControlEditorAbstractComponent', () => {
     it('should call update invalid params', () => {
       component._updateInvalidParams = jest.fn();
 
-      component.removeErrors();
+      component._removeErrors();
 
       expect(component._updateInvalidParams).toHaveBeenCalled();
     });
@@ -108,7 +108,7 @@ describe('FormControlEditorAbstractComponent', () => {
     it('should call clear all parent controls', () => {
       component._clearAllParentErrors = jest.fn();
 
-      component.removeErrors();
+      component._removeErrors();
 
       expect(component._clearAllParentErrors).toHaveBeenCalledWith(component.control.control);
     });
diff --git a/alfa-client/libs/design-component/src/lib/form/formcontrol-editor.abstract.component.ts b/alfa-client/libs/design-component/src/lib/form/formcontrol-editor.abstract.component.ts
index 6e07be87f8..2a11953641 100644
--- a/alfa-client/libs/design-component/src/lib/form/formcontrol-editor.abstract.component.ts
+++ b/alfa-client/libs/design-component/src/lib/form/formcontrol-editor.abstract.component.ts
@@ -58,7 +58,7 @@ export abstract class FormControlEditorAbstractComponent implements ControlValue
 
   _fieldControlOnChangeHandler(value: unknown): void {
     this.onChange(value);
-    this.removeErrors();
+    this._removeErrors();
   }
 
   touch(): void {
@@ -93,7 +93,7 @@ export abstract class FormControlEditorAbstractComponent implements ControlValue
     this._updateInvalidParams();
   }
 
-  removeErrors(): void {
+  _removeErrors(): void {
     if (!this.control) return;
 
     this.fieldControl.setErrors(null);
-- 
GitLab