diff --git a/src/app/modules/customer-management/components/projects-type/components/create-project-type/create-project-type.component.ts b/src/app/modules/customer-management/components/projects-type/components/create-project-type/create-project-type.component.ts index bcd50a26f..8028d08ab 100644 --- a/src/app/modules/customer-management/components/projects-type/components/create-project-type/create-project-type.component.ts +++ b/src/app/modules/customer-management/components/projects-type/components/create-project-type/create-project-type.component.ts @@ -75,7 +75,11 @@ export class CreateProjectTypeComponent implements OnInit, OnDestroy { this.store.dispatch(new UpdateProjectType(projectType)); this.hasChangedEvent.emit(this.hasChange = false); } else { - this.store.dispatch(new CreateProjectType({ ...projectTypeData, customer_id: this.customerId })); + this.store.dispatch(new CreateProjectType({ + ...projectTypeData, + description: !projectTypeData.description ? '' : projectTypeData.description, + customer_id: this.customerId + })); this.projectTypeForm.get('description').setValue(''); } }