mirror of
https://github.com/edufeed-org/polloer.git
synced 2025-12-07 23:34:31 +00:00
use set
This commit is contained in:
parent
906047e98c
commit
ac0ab55583
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@
|
|||
const sub = $ndk.subscribe({ kinds: [2222], '#E': [data.id] });
|
||||
sub.on('event', (event) => {
|
||||
console.log(event);
|
||||
$comments = [...$comments, event];
|
||||
$comments = Array.from(new Set([...$comments, event]));
|
||||
console.log(`${event.content}`);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue