Skip to content
Snippets Groups Projects
Commit 5ea1aa00 authored by Jason Salyers's avatar Jason Salyers
Browse files

[JES] Null account is hidden from view, so don't include it in the count of users on a list

parent bd4114cf
No related branches found
No related tags found
2 merge requests!224Develop,!221[JES] Null account is hidden from view, so don't include it in the count of users on a list
...@@ -168,8 +168,21 @@ class ListManagement extends React.Component { ...@@ -168,8 +168,21 @@ class ListManagement extends React.Component {
get_list_length() { get_list_length() {
if (!this.state.all_listed_accounts) return 0; if (!this.state.all_listed_accounts) return 0;
if (this.state.account_filter === '') return this.state.all_listed_accounts.length; let count = 0;
else return this.get_filtered_accounts().length; if (this.state.account_filter === '') {
count = this.state.all_listed_accounts.length;
} else {
count = this.get_filtered_accounts().length;
}
for (var account of this.state.all_listed_accounts) {
if (account && account.name === 'null') {
count--;
break;
}
}
return count;
} }
handle_page_select(direction) { handle_page_select(direction) {
......
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