This commit is contained in:
Brian Vaughn
2019-04-04 08:35:42 -07:00
parent 8c3a97401f
commit a9fced9b0d
+4 -1
View File
@@ -309,7 +309,10 @@ function reduceSearchState(store: Store, state: State, action: Action): State {
}
// Changes in search index or typing should override the selected element.
if (searchIndex !== prevSearchIndex || searchText.indexOf(prevSearchText) === 0) {
if (
searchIndex !== prevSearchIndex ||
searchText.indexOf(prevSearchText) === 0
) {
if (searchIndex === null) {
selectedElementIndex = null;
selectedElementID = null;