Skip to content

Commit 0de3c17

Browse files
author
Vikas Agarwal
committed
Graceful error handling when the template for an existing project is deleted.
1 parent b59283a commit 0de3c17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/templates.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export function getProjectProductTemplates(productTemplates, projectTemplates, p
9696
}
9797

9898
const projectTemplate = getProjectTemplateById(projectTemplates, project.templateId)
99-
const { phases } = projectTemplate
99+
const phases = _.get(projectTemplate, 'phases', []) // TODO we can log error details here for missing project template
100100
const projectProductTemplates = []
101101

102102
Object.keys(phases).forEach((phaseName) => {

0 commit comments

Comments
 (0)