[fix] a typo in variable name (#7197)

This commit is contained in:
Grace Guo 2019-04-01 17:55:40 -07:00 committed by GitHub
parent 37d7b2c040
commit a1d4635627
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -62,7 +62,7 @@ class ChartRenderer extends React.Component {
this.state = {};
this.createChartProps = ChartProps.createSelector();
this.hasQueryResponseChnage = false;
this.hasQueryResponseChange = false;
this.setTooltip = this.setTooltip.bind(this);
this.handleAddFilter = this.handleAddFilter.bind(this);
@ -79,10 +79,10 @@ class ChartRenderer extends React.Component {
!nextProps.refreshOverlayVisible;
if (resultsReady) {
this.hasQueryResponseChnage =
this.hasQueryResponseChange =
nextProps.queryResponse !== this.props.queryResponse;
if (this.hasQueryResponseChnage ||
if (this.hasQueryResponseChange ||
nextProps.annotationData !== this.props.annotationData ||
nextProps.height !== this.props.height ||
nextProps.width !== this.props.width ||
@ -137,7 +137,7 @@ class ChartRenderer extends React.Component {
// only log chart render time which is triggered by query results change
// currently we don't log chart re-render time, like window resize etc
if (this.hasQueryResponseChnage) {
if (this.hasQueryResponseChange) {
actions.logEvent(LOG_ACTIONS_RENDER_CHART, {
slice_id: chartId,
viz_type: vizType,
@ -154,7 +154,7 @@ class ChartRenderer extends React.Component {
actions.chartRenderingFailed(error.toString(), chartId, info ? info.componentStack : null);
// only trigger render log when query is changed
if (this.hasQueryResponseChnage) {
if (this.hasQueryResponseChange) {
actions.logEvent(LOG_ACTIONS_RENDER_CHART, {
slice_id: chartId,
has_err: true,