elements-inspector/elements
Summary: _typescript_ Reviewed By: danielbuechele Differential Revision: D17180489 fbshipit-source-id: 6ddc53f03fddf56494a18a7e1826ba4dd1e7e564
This commit is contained in:
committed by
Facebook Github Bot
parent
158f7cba33
commit
7bb9ef4a37
@@ -452,7 +452,7 @@ export class Elements extends PureComponent<ElementsProps, ElementsState> {
|
||||
|
||||
setProps(props: ElementsProps) {
|
||||
const flatElements: FlatElements = [];
|
||||
const flatKeys = [];
|
||||
const flatKeys: Array<ElementID> = [];
|
||||
|
||||
let maxDepth = 0;
|
||||
|
||||
@@ -616,9 +616,8 @@ export class Elements extends PureComponent<ElementsProps, ElementsState> {
|
||||
selected={selected === row.key}
|
||||
focused={focused === row.key}
|
||||
matchingSearchQuery={
|
||||
containsKeyInSearchResults(searchResults, row.key)
|
||||
? //$FlowFixMe: Checked that searchResults is not undefined in containsKeyInSearchResults
|
||||
searchResults.query
|
||||
searchResults && containsKeyInSearchResults(searchResults, row.key)
|
||||
? searchResults.query
|
||||
: null
|
||||
}
|
||||
isQueryMatch={containsKeyInSearchResults(searchResults, row.key)}
|
||||
|
||||
Reference in New Issue
Block a user