Skip to content

Commit

Permalink
fix: broken hook refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
nickofthyme committed Jun 23, 2020
1 parent 189843c commit 6207f94
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ export const ThresholdVisualization: React.FunctionComponent<Props> = ({
if (!charts || !uiSettings || !dataFieldsFormats) {
return null;
}
const chartsTheme = charts.theme.useChartsTheme();
const chartsBaseTheme = charts.theme.useChartsBaseTheme();

const domain = getDomain(alertInterval, startVisualizationAt);
const visualizeOptions = {
Expand Down Expand Up @@ -258,8 +260,8 @@ export const ThresholdVisualization: React.FunctionComponent<Props> = ({
{alertVisualizationDataKeys.length ? (
<Chart size={['100%', 200]} renderer="canvas">
<Settings
theme={[customTheme(), charts.theme.useChartsTheme()]}
baseTheme={charts.theme.useChartsBaseTheme()}
theme={[customTheme(), chartsTheme]}
baseTheme={chartsBaseTheme}
xDomain={domain}
showLegend={!!termField}
showLegendExtra
Expand Down

0 comments on commit 6207f94

Please sign in to comment.