aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/assets/components/CustomTooltip.jsx
diff options
context:
space:
mode:
authorKurkó Mihály <kurkomisi@users.noreply.github.com>2018-07-11 15:59:04 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-07-11 15:59:04 +0800
commita9835c1816bc49ee54c82b4f2a5b05cbcd89881b (patch)
treee1badefd627aa3a7c4e1937eab22b8fe3eb204d1 /dashboard/assets/components/CustomTooltip.jsx
parent2eedbe799f5eb8766e4808d8a1810cc1c90c4b93 (diff)
downloadgo-tangerine-a9835c1816bc49ee54c82b4f2a5b05cbcd89881b.tar
go-tangerine-a9835c1816bc49ee54c82b4f2a5b05cbcd89881b.tar.gz
go-tangerine-a9835c1816bc49ee54c82b4f2a5b05cbcd89881b.tar.bz2
go-tangerine-a9835c1816bc49ee54c82b4f2a5b05cbcd89881b.tar.lz
go-tangerine-a9835c1816bc49ee54c82b4f2a5b05cbcd89881b.tar.xz
go-tangerine-a9835c1816bc49ee54c82b4f2a5b05cbcd89881b.tar.zst
go-tangerine-a9835c1816bc49ee54c82b4f2a5b05cbcd89881b.zip
cmd, dashboard, log: log collection and exploration (#17097)
* cmd, dashboard, internal, log, node: logging feature * cmd, dashboard, internal, log: requested changes * dashboard, vendor: gofmt, govendor, use vendored file watcher * dashboard, log: gofmt -s -w, goimports * dashboard, log: gosimple
Diffstat (limited to 'dashboard/assets/components/CustomTooltip.jsx')
-rw-r--r--dashboard/assets/components/CustomTooltip.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dashboard/assets/components/CustomTooltip.jsx b/dashboard/assets/components/CustomTooltip.jsx
index 3405f9305..f597c1caf 100644
--- a/dashboard/assets/components/CustomTooltip.jsx
+++ b/dashboard/assets/components/CustomTooltip.jsx
@@ -85,7 +85,7 @@ export type Props = {
class CustomTooltip extends Component<Props> {
render() {
const {active, payload, tooltip} = this.props;
- if (!active || typeof tooltip !== 'function') {
+ if (!active || typeof tooltip !== 'function' || !Array.isArray(payload) || payload.length < 1) {
return null;
}
return tooltip(payload[0].value);