Llnt fixes for chart.jsx (#3730)

This commit is contained in:
Gandharv 2022-08-03 17:58:13 +05:30 committed by GitHub
parent b935fd14e4
commit 073359376a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -147,8 +147,6 @@ class Chart extends React.Component {
});
}
if (chartType !== 'pie') {
if (!plotFromJson) {
items.push({
@ -167,47 +165,31 @@ class Chart extends React.Component {
items.push({
title: 'Options',
children:
<>
{
renderElement(
component,
componentMeta,
paramUpdated,
dataQueries,
'loadingState',
'properties',
currentState
)
}
{renderElement(
component,
componentMeta,
paramUpdated,
dataQueries,
'showAxes',
'properties',
currentState
)},
{renderElement(
component,
componentMeta,
paramUpdated,
dataQueries,
'showGridLines',
'properties',
currentState
)
}
</>
children: (
<>
{renderElement(
component,
componentMeta,
paramUpdated,
dataQueries,
'loadingState',
'properties',
currentState
)}
{renderElement(component, componentMeta, paramUpdated, dataQueries, 'showAxes', 'properties', currentState)}
,
{renderElement(
component,
componentMeta,
paramUpdated,
dataQueries,
'showGridLines',
'properties',
currentState
)}
</>
),
});
}
items.push({