mirror of
https://github.com/apache/superset.git
synced 2026-04-12 04:37:49 +00:00
[hotfix] fixing issues around new time_table viz (#3599)
This commit is contained in:
committed by
GitHub
parent
ed212440b5
commit
1fb8716231
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user