mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 06:46:04 +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.name.toLowerCase().includes(search) ||
|
||||||
ref.authorName.toLowerCase().includes(search)
|
ref.authorName.toLowerCase().includes(search)
|
||||||
) {
|
) {
|
||||||
|
if (!results.some((r) => r.id == ref.id)) {
|
||||||
results.push(ref);
|
results.push(ref);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (var i = 0; i < this.favoriteAvatars.length; ++i) {
|
for (var i = 0; i < this.favoriteAvatars.length; ++i) {
|
||||||
var ref = this.favoriteAvatars[i].ref;
|
var ref = this.favoriteAvatars[i].ref;
|
||||||
@@ -21815,9 +21817,11 @@ speechSynthesis.getVoices();
|
|||||||
ref.name.toLowerCase().includes(search) ||
|
ref.name.toLowerCase().includes(search) ||
|
||||||
ref.authorName.toLowerCase().includes(search)
|
ref.authorName.toLowerCase().includes(search)
|
||||||
) {
|
) {
|
||||||
|
if (!results.some((r) => r.id == ref.id)) {
|
||||||
results.push(ref);
|
results.push(ref);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.avatarFavoriteSearchResults = results;
|
this.avatarFavoriteSearchResults = results;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user