Release 2.4.1

This commit is contained in:
2025-08-11 18:41:57 +00:00
parent 3e48bda7cf
commit ed2aea483b
5 changed files with 40 additions and 18 deletions

View File

@@ -30,16 +30,7 @@ export default function FavoritesPage() {
try {
const response = await neoApi.get('/api/v1/favorites');
const items = Array.isArray(response.data)
? response.data.map((m: any) => ({
id: m.id,
mediaId: String(m.id),
mediaType: 'movie' as const,
title: m.title ?? m.name ?? '',
posterPath: m.poster_path ?? '',
}))
: [];
setFavorites(items);
setFavorites(response.data);
} catch (error: any) {
console.error('Failed to fetch favorites:', error);
// Редиректим только при явном 401