Skip to content
Snippets Groups Projects
Commit c0be9132 authored by esikkala's avatar esikkala
Browse files

Fix resultCount

parent ce38b077
No related branches found
No related tags found
No related merge requests found
......@@ -254,7 +254,7 @@ class ResultTable extends React.Component {
caption: classes.paginationCaption,
toolbar: classes.paginationToolbar
}}
count={resultCount}
count={resultCount == null ? 0 : resultCount}
labelDisplayedRows={resultCount == null
? () => '-'
: ({ from, to, count }) => `${from}-${to} of ${count}`}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment