Fix incorrect count

pull/1344/head
Andrew Watkins 2017-04-27 11:08:02 -07:00
parent d9ab669008
commit 6237ad0473
1 changed files with 2 additions and 2 deletions

View File

@ -52,10 +52,10 @@ const DashboardsPage = React.createClass({
let tableHeader
if (dashboards === null) {
tableHeader = 'Loading Dashboards...'
} else if (dashboards.length === 0) {
} else if (dashboards.length === 1) {
tableHeader = '1 Dashboard'
} else {
tableHeader = `${dashboards.length + 1} Dashboards`
tableHeader = `${dashboards.length} Dashboards`
}
return (