Skip to content

Commit b9ae5c0

Browse files
committed
fix(search): Handle iTunes API response
- iTunes results ids should not be used for navigation - Prefer feed url, we might add an itunes id endpoint
1 parent 53116ee commit b9ae5c0

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/ui/Search/Search.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ import { LoadBar } from '@/ui/LoadBar';
1616
import styles from './Search.module.css';
1717

1818
function getSearchResultHref(result: IPodcastSearchResult): string {
19-
if (result.id) {
20-
return `/episodes/${result.id}`;
21-
}
2219
return `/episodes/${encodeURIComponent(result.feed)}`;
2320
}
2421

0 commit comments

Comments
 (0)