Skip to content

Commit afe40ac

Browse files
authored
fix: TT-504 Review create Project type (#789)
1 parent 8ee69cf commit afe40ac

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/app/modules/customer-management/components/projects-type/components/create-project-type/create-project-type.component.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ export class CreateProjectTypeComponent implements OnInit, OnDestroy {
7575
this.store.dispatch(new UpdateProjectType(projectType));
7676
this.hasChangedEvent.emit(this.hasChange = false);
7777
} else {
78-
this.store.dispatch(new CreateProjectType({ ...projectTypeData, customer_id: this.customerId }));
78+
this.store.dispatch(new CreateProjectType({
79+
...projectTypeData,
80+
description: !projectTypeData.description ? '' : projectTypeData.description,
81+
customer_id: this.customerId
82+
}));
7983
this.projectTypeForm.get('description').setValue('');
8084
}
8185
}

0 commit comments

Comments
 (0)