Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: TT-504 Review create Project type
  • Loading branch information
scastillo-jp committed Jan 12, 2022
commit b71100b4b0263df6c67f831c9be3fc704fc14528
Original file line number Diff line number Diff line change
Expand Up @@ -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('');
}
}
Expand Down