mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 23:03:51 +02:00
Fix freeze caused by duplicate entries when searching avatar favs (#1067)
This commit is contained in:
@@ -21801,10 +21801,12 @@ speechSynthesis.getVoices();
|
||||
ref.name.toLowerCase().includes(search) ||
|
||||
ref.authorName.toLowerCase().includes(search)
|
||||
) {
|
||||
if (!results.some((r) => r.id == ref.id)) {
|
||||
results.push(ref);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (var i = 0; i < this.favoriteAvatars.length; ++i) {
|
||||
var ref = this.favoriteAvatars[i].ref;
|
||||
@@ -21815,9 +21817,11 @@ speechSynthesis.getVoices();
|
||||
ref.name.toLowerCase().includes(search) ||
|
||||
ref.authorName.toLowerCase().includes(search)
|
||||
) {
|
||||
if (!results.some((r) => r.id == ref.id)) {
|
||||
results.push(ref);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.avatarFavoriteSearchResults = results;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user