File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 5050 "@trendmicro/react-paginations" : " ^0.5.10" ,
5151 "trendmicro-ui" : " ^0.4.0" ,
5252 "classnames" : " ^2.2.5" ,
53+ "lodash.get" : " ^4.4.2" ,
5354 "prop-types" : " ^15.5.8"
5455 },
5556 "devDependencies" : {
Original file line number Diff line number Diff line change 11import React , { PureComponent } from 'react' ;
22import PropTypes from 'prop-types' ;
3+ import get from 'lodash.get' ;
34import styles from './index.styl' ;
45
56class TableCell extends PureComponent {
@@ -17,7 +18,7 @@ class TableCell extends PureComponent {
1718 const { column, record } = this . props ;
1819 const cName = column . dataIndex ;
1920 const render = column . render ;
20- let text = record [ cName ] ;
21+ let text = get ( record , cName ) ;
2122 return (
2223 < div className = { styles . td } >
2324 < div className = { styles . tdContent } >
You can’t perform that action at this time.
0 commit comments