Skip to content

Commit

Permalink
fix(BB-548): Don't throw error if editing entity with defaultAlias mi…
Browse files Browse the repository at this point in the history
…ssing
  • Loading branch information
MonkeyDo committed Oct 6, 2020
1 parent 004858b commit 4694ac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/helpers/entityRouteUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export function generateEntityProps(
action,
entityType,
heading: isEdit ?
`Edit ${entity.defaultAlias.name} (${entityName})` :
`Edit ${entity.defaultAlias ? entity.defaultAlias.name : '(unnamed)'} (${entityName})` :
`Add ${entityName}`,
identifierTypes: filteredIdentifierTypes,
initialState: initialStateCallback(entity),
Expand Down

0 comments on commit 4694ac1

Please sign in to comment.