Fix indentation

This commit is contained in:
uwap 2018-10-20 09:03:15 +02:00
parent 08aff120bd
commit a0cb05b294

View file

@ -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));