Skip to content
This repository was archived by the owner on Jun 25, 2020. It is now read-only.

Commit 7cc2ea2

Browse files
committed
fix: fixing linting error about throwing literlal errors
1 parent e1ae6bf commit 7cc2ea2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/superset-ui-legacy-plugin-chart-horizon/src/HorizonChart.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ class HorizonChart extends React.PureComponent {
7878
yDomain = d3Extent(allValues, d => d.y);
7979
}
8080

81-
if (data.length <= 1) throw 'Please select a "Group by" option to enable multiple rows.';
81+
if (data.length <= 1)
82+
throw new Error('Please select a "Group by" option to enable multiple rows.');
8283

8384
return (
8485
<div className={`superset-legacy-chart-horizon ${className}`} style={{ height }}>

0 commit comments

Comments
 (0)