mirror of
https://github.com/apache/superset.git
synced 2026-05-12 03:15:55 +00:00
This commit is contained in:
committed by
GitHub
parent
1d9dbcd9dc
commit
3fd6e0630e
@@ -24,7 +24,7 @@ import classnames from 'classnames';
|
||||
import Button from '../../components/Button';
|
||||
|
||||
const propTypes = {
|
||||
canAdd: PropTypes.string.isRequired,
|
||||
canAdd: PropTypes.bool.isRequired,
|
||||
onQuery: PropTypes.func.isRequired,
|
||||
onSave: PropTypes.func,
|
||||
onStop: PropTypes.func,
|
||||
@@ -49,7 +49,7 @@ export default function QueryAndSaveBtns({
|
||||
errorMessage,
|
||||
}) {
|
||||
const saveClasses = classnames({
|
||||
'disabled disabledButton': canAdd !== 'True',
|
||||
'disabled disabledButton': !canAdd,
|
||||
});
|
||||
|
||||
let qryButtonStyle = 'default';
|
||||
|
||||
Reference in New Issue
Block a user