mirror of
https://github.com/apache/superset.git
synced 2026-04-21 17:14:57 +00:00
Linting JSX files (#941)
`.jsx` linting is now in-scope for the `npm run lint` command, and I linted the base files and some of the viz, there's still quite a bit of work there, but that's a first pass on it.
This commit is contained in:
committed by
GitHub
parent
7f2805a3c5
commit
a8fd23dfa4
@@ -3,7 +3,7 @@ import React, { PropTypes } from 'react';
|
||||
import update from 'immutability-helper';
|
||||
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
|
||||
import Modal from './Modal.jsx';
|
||||
require('../../../node_modules/react-bootstrap-table/css/react-bootstrap-table.css');
|
||||
require('react-bootstrap-table/css/react-bootstrap-table.css');
|
||||
|
||||
const propTypes = {
|
||||
dashboard: PropTypes.object.isRequired,
|
||||
@@ -129,7 +129,8 @@ class SliceAdder extends React.Component {
|
||||
|
||||
render() {
|
||||
const hideLoad = this.slicesLoaded || this.errored;
|
||||
const enableAddSlice = this.state.selectionMap && Object.keys(this.state.selectionMap).some(function (key) {
|
||||
let enableAddSlice = this.state.selectionMap && Object.keys(this.state.selectionMap);
|
||||
enableAddSlice = enableAddSlice.some(function (key) {
|
||||
return this.state.selectionMap[key];
|
||||
}, this);
|
||||
const modalContent = (
|
||||
|
||||
Reference in New Issue
Block a user