- {seriesChartPanel}
+ {multiSeriesChartPanel}
{hasMultiSeries && (
@@ -874,7 +893,6 @@ class ComponentEditPanel extends React.Component {
const {
type,
subType,
- queryResult,
jdbcDataSources = [],
drillThrough = [],
drillReports = [],
@@ -883,12 +901,6 @@ class ComponentEditPanel extends React.Component {
searchSchemaName
} = this.state;
- const data = Util.jsonToArray(queryResult.data);
- const {
- columns = [],
- error
- } = queryResult;
-
// Render the drill through list.
const drillItems = [];
for (let i = 0; i < drillThrough.length; i++) {
@@ -914,7 +926,7 @@ class ComponentEditPanel extends React.Component {
}
// Render the column list.
- const columnItems = columns.map(column =>
+ const columnItems = this.state.queryResultColumns.map(column =>
{column.name}
{column.dbType}({column.length})
@@ -1088,15 +1100,15 @@ class ComponentEditPanel extends React.Component {
/>
- { error ? (
+ { this.state.queryResultError ? (
- {error}
+ {this.state.queryResultError}
) : (
)}
@@ -1173,7 +1185,7 @@ class ComponentEditPanel extends React.Component {