summaryrefslogtreecommitdiffstats
path: root/web/react/components/setting_item_max.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'web/react/components/setting_item_max.jsx')
-rw-r--r--web/react/components/setting_item_max.jsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/web/react/components/setting_item_max.jsx b/web/react/components/setting_item_max.jsx
index 537055641..ac750614b 100644
--- a/web/react/components/setting_item_max.jsx
+++ b/web/react/components/setting_item_max.jsx
@@ -46,9 +46,14 @@ export default class SettingItemMax extends React.Component {
widthClass = 'col-sm-9 col-sm-offset-3';
}
+ let title;
+ if (this.props.title) {
+ title = <li className='col-sm-12 section-title'>{this.props.title}</li>;
+ }
+
return (
<ul className='section-max form-horizontal'>
- <li className='col-sm-12 section-title'>{this.props.title}</li>
+ {title}
<li className={widthClass}>
<ul className='setting-list'>
<li className='setting-list-item'>