[hotfix] fixing issues around new time_table viz (#3599)

This commit is contained in:
Maxime Beauchemin
2017-10-04 16:22:11 -07:00
committed by GitHub
parent ed212440b5
commit 1fb8716231
5 changed files with 11 additions and 8 deletions

View File

@@ -5,7 +5,7 @@ import InfoTooltipWithTrigger from '../../components/InfoTooltipWithTrigger';
import { t } from '../../locales';
const propTypes = {
label: PropTypes.string.isRequired,
label: PropTypes.string,
description: PropTypes.string,
validationErrors: PropTypes.array,
renderTrigger: PropTypes.bool,
@@ -52,6 +52,9 @@ export default class ControlHeader extends React.Component {
return null;
}
render() {
if (!this.props.label) {
return null;
}
const labelClass = (this.props.validationErrors.length > 0) ? 'text-danger' : '';
return (
<div