From 37fc73b1ea34c039f38c4a8df38ef6c3b60553ef Mon Sep 17 00:00:00 2001 From: wmwragg Date: Thu, 15 Sep 2016 17:31:15 +0100 Subject: [PATCH] Setting correct initial state --- src/components/structures/RoomSubList.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/structures/RoomSubList.js b/src/components/structures/RoomSubList.js index fb4d897e..0fe45f47 100644 --- a/src/components/structures/RoomSubList.js +++ b/src/components/structures/RoomSubList.js @@ -85,8 +85,7 @@ var RoomSubList = React.createClass({ getInitialState: function() { return { hidden: this.props.startAsHidden || false, - capTruncate: this.props.list.length > TRUNCATE_AT, - truncateAt: this.props.list.length > TRUNCATE_AT ? TRUNCATE_AT : -1, + truncateAt: TRUNCATE_AT, sortedList: [], }; },