Skip to content
Snippets Groups Projects
Commit 39ef8ec2 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

contacts: only list non removed contacts

GitLab: #123
Change-Id: I9b889a51914e2ea0ac1e7da567bafe0508db695b
parent 26ede287
No related branches found
No related tags found
No related merge requests found
......@@ -155,7 +155,9 @@ export default function Users(props) {
TODO: Include the username of the user of which we want to display contacts
at the moment the admin sees his contacts in each user profile he visits
*/
const originalContacts = response.data;
const originalContacts = response.data.filter(
(contact) => contact.added >= 0
);
for (const contact of originalContacts) {
contact.display = "";
axios(
......
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