Skip to content

Commit

Permalink
Fixed #1383 - EmptyMessage property is not working with empty string …
Browse files Browse the repository at this point in the history
…on DataTable
  • Loading branch information
mertsincan committed May 27, 2020
1 parent 03c5ca8 commit a78c72e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/datatable/TableBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ export class TableBody extends Component {
else {
let emptyMessage = this.props.emptyMessage;

rows = !this.props.loading && emptyMessage ?
rows = !this.props.loading && emptyMessage !== null ?
<tr className="p-datatable-emptymessage">
<td colSpan={this.props.children.length}>
{
Expand Down

0 comments on commit a78c72e

Please sign in to comment.