Skip to content

Commit

Permalink
change order
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw committed Aug 21, 2018
1 parent f1455fb commit c4506b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/assets/src/visualizations/word_cloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ const propTypes = {
};

function wordCloud(element, props) {
PropTypes.checkPropTypes(propTypes, props, 'prop', 'WordCloud');

const {
data,
width,
Expand All @@ -28,8 +30,6 @@ function wordCloud(element, props) {
colorScheme,
} = props;

PropTypes.checkPropTypes(propTypes, props, 'prop', 'WordCloud');

const chart = d3.select(element);
const size = [width, height];
const rotationFn = ROTATION[rotation] || ROTATION.random;
Expand Down

0 comments on commit c4506b0

Please sign in to comment.