diff --git a/src/modules/core/components/BreadCrumb/BreadCrumb.tsx b/src/modules/core/components/BreadCrumb/BreadCrumb.tsx index 00f4122f93..05cbbccd62 100644 --- a/src/modules/core/components/BreadCrumb/BreadCrumb.tsx +++ b/src/modules/core/components/BreadCrumb/BreadCrumb.tsx @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { Fragment } from 'react'; import { injectIntl, IntlShape, MessageDescriptor } from 'react-intl'; import styles from './BreadCrumb.css'; @@ -22,13 +22,9 @@ const BreadCrumb = ({ elements, intl: { formatMessage } }: Props) => { const crumbText = typeof crumb == 'string' ? crumb : formatMessage(crumb); return ( - <> + {elements.length > 1 && i < elements.length - 1 ? ( -
+
{crumbText} >
@@ -38,7 +34,7 @@ const BreadCrumb = ({ elements, intl: { formatMessage } }: Props) => { {crumbText}
) : null} - +
); })}