Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomedina248 committed Jul 14, 2022
1 parent 30aa5b7 commit e252405
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,7 @@ export default class CRUDCollection extends React.PureComponent<
}

getCellProps(record: any, col: any) {
const cellPropsFn =
this.props.itemCellProps && this.props.itemCellProps[col];
const cellPropsFn = this.props.itemCellProps?.[col];
const val = record[col];
return cellPropsFn ? cellPropsFn(val, this.getLabel(col), record) : {};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const defaultProps = {
maxLines: 10,
offerEditInModal: true,
readOnly: false,
resize: false,
resize: null,
textAreaStyles: {},
};

Expand Down

0 comments on commit e252405

Please sign in to comment.