From 073359376a3521b1c429e9bcf42356d638521ae6 Mon Sep 17 00:00:00 2001 From: Gandharv Date: Wed, 3 Aug 2022 17:58:13 +0530 Subject: [PATCH] Llnt fixes for chart.jsx (#3730) --- .../src/Editor/Inspector/Components/Chart.jsx | 66 +++++++------------ 1 file changed, 24 insertions(+), 42 deletions(-) diff --git a/frontend/src/Editor/Inspector/Components/Chart.jsx b/frontend/src/Editor/Inspector/Components/Chart.jsx index 9e31db12a3..944b59e2c2 100644 --- a/frontend/src/Editor/Inspector/Components/Chart.jsx +++ b/frontend/src/Editor/Inspector/Components/Chart.jsx @@ -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({