mirror of
https://github.com/apache/superset.git
synced 2026-04-17 15:15:20 +00:00
chore: replace Lodash usage with native JS implementation (#31907)
Signed-off-by: hainenber <dotronghai96@gmail.com>
This commit is contained in:
@@ -61,7 +61,7 @@ import {
|
||||
PlusCircleOutlined,
|
||||
TableOutlined,
|
||||
} from '@ant-design/icons';
|
||||
import { isEmpty, isNumber } from 'lodash';
|
||||
import { isEmpty } from 'lodash';
|
||||
import {
|
||||
ColorSchemeEnum,
|
||||
DataColumnMeta,
|
||||
@@ -899,7 +899,9 @@ export default function TableChart<D extends DataRecord = DataRecord>(
|
||||
/* The following classes are added to support custom CSS styling */
|
||||
className={cx(
|
||||
'cell-bar',
|
||||
isNumber(value) && value < 0 ? 'negative' : 'positive',
|
||||
typeof value === 'number' && value < 0
|
||||
? 'negative'
|
||||
: 'positive',
|
||||
)}
|
||||
css={cellBarStyles}
|
||||
role="presentation"
|
||||
|
||||
Reference in New Issue
Block a user