Fix indentation
This commit is contained in:
parent
08aff120bd
commit
a0cb05b294
1 changed files with 9 additions and 9 deletions
|
|
@ -81,15 +81,15 @@ const safeIncludes = (o: {+type?: string, +text?: string, +topic?: string},
|
|||
|
||||
const isVisible = (props: ControlMapProps) =>
|
||||
(c: UIControl & {ui?: Array<ControlUI>}) => {
|
||||
if (safeIncludes(c, props.search.toLowerCase())) {
|
||||
return true;
|
||||
}
|
||||
if (c.ui != null) {
|
||||
return reduce(c.ui,
|
||||
(b, e) => b || safeIncludes(e, props.search.toLowerCase()), false);
|
||||
}
|
||||
return false;
|
||||
};
|
||||
if (safeIncludes(c, props.search.toLowerCase())) {
|
||||
return true;
|
||||
}
|
||||
if (c.ui != null) {
|
||||
return reduce(c.ui,
|
||||
(b, e) => b || safeIncludes(e, props.search.toLowerCase()), false);
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
const renderMarkers = (props: ControlMapProps) =>
|
||||
map(filter(props.controls, isVisible(props)), renderMarker(props));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue