mirror of https://github.com/vector-im/riot-web
pull/21833/head
parent
3785cb3f15
commit
5e5fdb9b96
|
@ -51,7 +51,7 @@ module.exports = React.createClass({
|
||||||
if (this.props.truncateAt >= 0) {
|
if (this.props.truncateAt >= 0) {
|
||||||
var overflowCount = childCount - this.props.truncateAt;
|
var overflowCount = childCount - this.props.truncateAt;
|
||||||
|
|
||||||
if (overflowCount > 0) {
|
if (overflowCount > 1) {
|
||||||
overflowJsx = this.props.createOverflowElement(
|
overflowJsx = this.props.createOverflowElement(
|
||||||
overflowCount, childCount
|
overflowCount, childCount
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue