@samitouri / QOS-React / commits / a9fced9b0d

Prettier

Brian Vaughn committed Apr 4, 2019 at 08:35 UTC a9fced9b0d4eab36f70da29a32fcaca3b2a37b6c
1 file changed +4 -1
src/devtools/views/Components/TreeContext.js
+4 -1
@@ -309,7 +309,10 @@ function reduceSearchState(store: Store, state: State, action: Action): State {
309 }
310
311 // Changes in search index or typing should override the selected element.
312 - if (searchIndex !== prevSearchIndex || searchText.indexOf(prevSearchText) === 0) {
312 + if (
313 + searchIndex !== prevSearchIndex ||
314 + searchText.indexOf(prevSearchText) === 0
315 + ) {
316 if (searchIndex === null) {
317 selectedElementIndex = null;
318 selectedElementID = null;