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

[JES] Don't show the null account in user lists, but still use it to determine...

[JES] Don't show the null account in user lists, but still use it to determine if the user is a first time visitor or not
parent 592e6c78
No related branches found
No related tags found
2 merge requests!218Develop,!217[JES] Don't show the null account in user lists, but still use it to determine...
......@@ -160,7 +160,7 @@ class ListManagement extends React.Component {
let result = [];
let end_index = Math.min(accounts.length, this.state.start_index + this.state.entries_per_page);
for (var i = this.state.start_index; i < end_index; i++) {
result.push(accounts[i]);
if (accounts[i] !== null && accounts[i].name && accounts[i].name !== 'null') result.push(accounts[i]);
}
return result;
......@@ -168,7 +168,7 @@ class ListManagement extends React.Component {
get_list_length() {
if (!this.state.all_listed_accounts) return 0;
if (this.state.account_filter === '') return this.state.all_listed_accounts.length;
if (this.state.account_filter === '') return this.get_accounts_to_display().length;
else return this.get_filtered_accounts().length;
}
......
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