diff --git a/src/components/botch/botch-life-tree.jsx b/src/components/botch/botch-life-tree.jsx
index 81c1ae2877a..93882d406de 100644
--- a/src/components/botch/botch-life-tree.jsx
+++ b/src/components/botch/botch-life-tree.jsx
@@ -240,6 +240,47 @@ class BotchLifeTree extends React.Component {
onSelect={this.handleSelect}
/>);
}
+
+ renderFilter (){
+ return (this.props.filterable || this.props.tags) && (
+
+ {this.props.filterable && (
+
+ )}
+ {this.props.filterable && this.props.tags && (
+
+ )}
+ {this.props.tags &&
+
+ {tagListPrefix.concat(this.props.tags).map((tagProps, id) => (
+
+ ))}
+
+ }
+
+ );
+ }
+
render () {
@@ -252,43 +293,7 @@ class BotchLifeTree extends React.Component {
onRequestClose={this.handleClose}
>*/
- {(this.props.filterable || this.props.tags) && (
-
- {this.props.filterable && (
-
- )}
- {this.props.filterable && this.props.tags && (
-
- )}
- {this.props.tags &&
-
- {tagListPrefix.concat(this.props.tags).map((tagProps, id) => (
-
- ))}
-
- }
-
- )}
+
{this.renderTree()}
);