Skip to content

Commit 6203130

Browse files
authored
Update CreatePhaseForm.jsx
1 parent 2d03ead commit 6203130

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/projects/detail/components/CreatePhaseForm/CreatePhaseForm.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,14 @@ class CreatePhaseForm extends React.Component {
120120

121121
const phaseData = {
122122
title: model.title,
123-
description: model.description || ' ',
124123
startDate: moment(model.startDate),
125124
endDate: moment(model.endDate),
126125
}
127126

127+
if (model.description.trim()) {
128+
phaseData.description = model.description
129+
}
130+
128131
const apiMilestones = milestones.map((milestone, index) => ({
129132
// default values
130133
...MILESTONE_DEFAULT_VALUES[milestone.type],

0 commit comments

Comments
 (0)