fixed search
This commit is contained in:
@@ -41,11 +41,11 @@ export function mapApiSeasonToUI(data: any) {
|
||||
|
||||
export function mapApiShowToUI(data: any) {
|
||||
return {
|
||||
showId: data?.showId ?? data?.id,
|
||||
id: data.showId ?? data.id, // <-- hier der Fix
|
||||
title: data?.title ?? data?.name ?? `Show #${data?.showId ?? data?.id ?? "?"}`,
|
||||
description: data?.description ?? "",
|
||||
genre: data?.genre ?? "",
|
||||
thumbnailUrl: data?.thumbnailUrl ?? data?.imageUrl ?? "",
|
||||
thumbnailUri: data?.thumbnailUrl ?? data?.imageUrl ?? "",
|
||||
running: data?.running ?? false,
|
||||
} as any;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user