From 8d45a179237f4b8508f2d1568d5b1edc1a962f97 Mon Sep 17 00:00:00 2001 From: Ville Brofeldt <33317356+villebro@users.noreply.github.com> Date: Mon, 10 May 2021 15:33:48 +0300 Subject: [PATCH] fix(legacy-plugin-chart-horizon): error on missing groupby (#1100) --- .../plugins/legacy-plugin-chart-horizon/src/HorizonChart.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-horizon/src/HorizonChart.jsx b/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-horizon/src/HorizonChart.jsx index 833aeba3d3de..0fbc8bb04760 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-horizon/src/HorizonChart.jsx +++ b/superset-frontend/temporary_superset_ui/superset-ui/plugins/legacy-plugin-chart-horizon/src/HorizonChart.jsx @@ -20,6 +20,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { extent as d3Extent } from 'd3-array'; +import { ensureIsArray } from '@superset-ui/core'; import HorizonRow, { DEFAULT_COLORS } from './HorizonRow'; import './HorizonChart.css'; @@ -85,7 +86,7 @@ class HorizonChart extends React.PureComponent { key={row.key} width={width} height={seriesHeight} - title={row.key.join(', ')} + title={ensureIsArray(row.key).join(', ')} data={row.values} bands={bands} colors={colors}