Skip to content
Snippets Groups Projects
Unverified Commit 033dde29 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Prevent duplicated results on spotlight

parent 51dc0e48
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,7 @@ Template.spotlight.helpers ...@@ -44,7 +44,7 @@ Template.spotlight.helpers
server = serverResults.get() server = serverResults.get()
if server?.users?.length > 0 if server?.users?.length > 0
for user in server.users for user in server.users when not _.findWhere(memory, {t: 'd', name: user.username})?
memory.push({ memory.push({
t: 'd', t: 'd',
name: user.username name: user.username
......
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