Skip to content

Commit

Permalink
Check if Chart defined before displaying Tooltip (#61)
Browse files Browse the repository at this point in the history
* Check if Chart defined before displaying Tooltip

* Remove unused imports

* Update CHANGELOG.md
  • Loading branch information
mikhail-vl authored May 11, 2021
1 parent bf7c298 commit 6112618
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

- Add default Color Mode Id for older releases (7.2.X) #49
- Fix Latency below zero calculation #56
- "Cannot read property 'Tooltip' of undefined" for Latency Panel in the upcoming release #60

## v1.1.0 (2021-02-07)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { shallow } from 'enzyme';
import React from 'react';
import Editor from '@monaco-editor/react';
import { UnthemedCodeEditor } from './code-editor';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export class RedisLatencyPanelGraph extends PureComponent<Props, State> {
hideZero={options?.hideZero}
showLines
>
<Chart.Tooltip mode="multi"></Chart.Tooltip>
{Chart && <Chart.Tooltip mode="multi"></Chart.Tooltip>}
</GraphWithLegend>
);
}
Expand Down

0 comments on commit 6112618

Please sign in to comment.