Skip to content

Commit

Permalink
fix: account for undefined $designer in breadcrumb (#4752)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-b-r-o-w-n committed Nov 10, 2020
1 parent 8df175a commit 17e01fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Composer/packages/client/src/pages/design/DesignPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ const DesignPage: React.FC<RouteComponentProps<{ dialogId: string; projectId: st
if (triggerIndex != null && trigger != null) {
breadcrumbArray.push({
key: 'trigger-' + triggerIndex,
label: trigger.$designer.name || getFriendlyName(trigger),
label: trigger.$designer?.name || getFriendlyName(trigger),
link: {
projectId: props.projectId,
dialogId: props.dialogId,
Expand Down

0 comments on commit 17e01fa

Please sign in to comment.