Skip to content

Commit

Permalink
fix: remove colon from chip if no selection (#312)
Browse files Browse the repository at this point in the history
DHIS2-7443
  • Loading branch information
edoardo committed Aug 26, 2019
1 parent c142ffc commit e667134
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/app/src/components/Layout/Chip.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ class Chip extends React.Component {
? this.props.items.slice(0, 1)
: [];

const chipLabel = `${this.props.dimensionName}: ${
this.props.items.length > 0 ? itemsLabel : ''
const chipLabel = `${this.props.dimensionName}${
this.props.items.length > 0 ? `: ${itemsLabel}` : ''
}`;
const anchorEl = document.getElementById(this.id);
const icon = this.getIconByDimension();
Expand Down

0 comments on commit e667134

Please sign in to comment.