Fix error when searching through favs (#986)

Fix for an error that can occur when searching through favs resulting in the entire application freezing.
This commit is contained in:
Nekromateion
2024-11-26 05:36:10 +01:00
committed by GitHub
parent c4a19966a4
commit ffbc519966

View File

@@ -20593,7 +20593,7 @@ speechSynthesis.getVoices();
ref.name.toLowerCase().includes(search) || ref.name.toLowerCase().includes(search) ||
ref.authorName.toLowerCase().includes(search) ref.authorName.toLowerCase().includes(search)
) { ) {
results.push(ref); if (!results.some(r => r.id == ref.id)) results.push(ref);
} }
} }
} }
@@ -20607,7 +20607,7 @@ speechSynthesis.getVoices();
ref.name.toLowerCase().includes(search) || ref.name.toLowerCase().includes(search) ||
ref.authorName.toLowerCase().includes(search) ref.authorName.toLowerCase().includes(search)
) { ) {
results.push(ref); if (!results.some(r => r.id == ref.id)) results.push(ref);
} }
} }