Skip to content

Commit

Permalink
fix #146
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Nov 18, 2015
1 parent a5cffb6 commit 0dd2dc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/TableColumn.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ class TableColumn extends React.Component{
maxWidth: this.props.width
};
var classname = this.props.className;
if(this.props.width !== null && this.props.width.indexOf('px') > -1){
if(this.props.width &&
this.props.width !== null && this.props.width.indexOf('px') > -1){
let w = this.props.width.replace('px','');
classname += " col-md-"+w;
}
Expand Down

0 comments on commit 0dd2dc1

Please sign in to comment.