Skip to content

Commit

Permalink
Merge pull request #5342 from reactioncommerce/ref-kieckhafer-addTitl…
Browse files Browse the repository at this point in the history
…eToBreadcrumbs

refactor: add title as backup in product admin breadcrumb
  • Loading branch information
mikemurray authored Jul 19, 2019
2 parents c846da7 + caba753 commit ddbeb83
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function ProductHeader(props) {
className={classes.breadcrumbLink}
to={`/operator/products/${product._id}/${parentVariant._id}`}
>
{parentVariant.optionTitle || "Untitled Variant"}
{parentVariant.optionTitle || parentVariant.title || "Untitled Variant"}
</Link>
</Fragment>
)}
Expand All @@ -135,7 +135,7 @@ function ProductHeader(props) {
className={classes.breadcrumbLink}
to={`/operator/products/${variant.ancestors.join("/")}/${variant._id}`}
>
{variant.optionTitle || "Untitled Variant"}
{variant.optionTitle || variant.title || "Untitled Variant"}
</Link>
</Fragment>
)}
Expand Down

0 comments on commit ddbeb83

Please sign in to comment.