fix type errors

This commit is contained in:
jeffvli
2026-01-29 20:46:07 -08:00
parent 1a39182d80
commit 8ae1fb4fdb
3 changed files with 4 additions and 4 deletions
@@ -262,7 +262,7 @@ const AlbumArtistMetadataTopSongsContent = ({
const filteredSongs = useMemo(() => {
const filtered = searchLibraryItems(songs, debouncedSearchTerm, LibraryItem.SONG);
// When searching, show all results. Otherwise, limit to 5 if not showing all
if (debouncedSearchTerm.trim() || showAll) {
if (debouncedSearchTerm?.trim() || showAll) {
return filtered;
}
return filtered.slice(0, 5);