From acd383c6a9f73f3603856aab8b11cdef64dbe10a Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 19 Oct 2018 14:44:37 +0200 Subject: [PATCH] move closer to usage --- src/components/structures/RoomSubList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/RoomSubList.js b/src/components/structures/RoomSubList.js index 0cf719d507..be472d92f7 100644 --- a/src/components/structures/RoomSubList.js +++ b/src/components/structures/RoomSubList.js @@ -309,7 +309,6 @@ const RoomSubList = React.createClass({ ); } - const tabindex = this.props.searchFilter === "" ? "0" : "-1"; const len = this.state.sortedList.length + this.props.extraTiles.length; let chevron; if (len) { @@ -321,6 +320,7 @@ const RoomSubList = React.createClass({ chevron = (
); } + const tabindex = this.props.searchFilter === "" ? "0" : "-1"; return (