Skip to content
Snippets Groups Projects
Unverified Commit e6952eda authored by Julius Härtl's avatar Julius Härtl
Browse files

Don't enforce merged property


Signed-off-by: default avatarJulius Härtl <jus@bitgrid.net>
parent a0d759b3
No related branches found
No related tags found
No related merge requests found
......@@ -339,15 +339,11 @@
* merged contacts, if the search term matches its contact name
*/
for (i = 0; i < groupedLength; i++) {
console.log(grouped[i]);
if (typeof grouped[i].uuid !== 'undefined' && grouped[i].uuid === previousUuid) {
grouped[i].merged = true;
} else {
grouped[i].merged = false;
}
if (searchTerm === grouped[i].name || grouped[i].merged === false) {
if (searchTerm === grouped[i].name || typeof grouped[i].merged === 'undefined') {
result.push(grouped[i]);
} else {
}
previousUuid = grouped[i].uuid;
}
......
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