mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 01:18:23 +00:00
Llnt fixes for chart.jsx (#3730)
This commit is contained in:
parent
b935fd14e4
commit
073359376a
1 changed files with 24 additions and 42 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in a new issue