Skip to content

Commit

Permalink
fix: use debugState and not debug prop
Browse files Browse the repository at this point in the history
  • Loading branch information
markov00 committed Apr 13, 2021
1 parent 7dda08c commit 06e3716
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ describe.each([
onElementClickCaller(store.getState());
});
MockStore.addSpecs(
[MockSeriesSpec.sunburst(specJSON), MockGlobalSpec.settings({ debug: true, onElementClick: onClickListener })],
[
MockSeriesSpec.sunburst(specJSON),
MockGlobalSpec.settings({ debugState: true, onElementClick: onClickListener }),
],
store,
);
debugState = getDebugStateSelector(store.getState());
Expand Down
4 changes: 2 additions & 2 deletions src/components/chart_status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ class ChartStatusComponent extends React.Component<ChartStatusStateProps> {
}

const mapStateToProps = (state: GlobalChartState): ChartStatusStateProps => {
const { onRenderChange, debug } = getSettingsSpecSelector(state);
const { onRenderChange, debugState } = getSettingsSpecSelector(state);

return {
rendered: state.chartRendered,
renderedCount: state.chartRenderedCount,
onRenderChange,
debugState: debug ? getDebugStateSelector(state) : null,
debugState: debugState ? getDebugStateSelector(state) : null,
};
};

Expand Down

0 comments on commit 06e3716

Please sign in to comment.