We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce63d8b commit 2192a3cCopy full SHA for 2192a3c
1 file changed
lib/concepts/project/operations/create.rb
@@ -20,7 +20,7 @@ def build_project(project_hash, current_user)
20
project_hash[:identifier] = PhraseIdentifier.generate unless current_user&.experience_cs_admin?
21
new_project = Project.new(project_hash.except(:components, :scratch_component))
22
new_project.components.build(project_hash[:components])
23
- new_project.build_scratch_component(project_hash[:scratch_component])
+ new_project.build_scratch_component(project_hash[:scratch_component]) if project_hash[:scratch_component].present?
24
new_project
25
end
26
0 commit comments