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
12 changes: 12 additions & 0 deletions src/projects/create/components/ProjectWizard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,18 @@ class ProjectWizard extends Component {
if (usersField && users) {
appDefinitionQuery.users = users
}
const notes = _.get(this.state.dirtyProject, 'details.appDefinition.notes')
// finds the notes field from the target product template
const notesField = getProjectCreationTemplateField(
updatedProduct,
'appDefinition',
'notes',
'details.appDefinition.notes'
)
// if notes was already entered and updated product template has the field, restore it
if (notesField && notes) {
appDefinitionQuery.notes = notes
}
detailsQuery.appDefinition = appDefinitionQuery
}

Expand Down