carplay exception fixes

This commit is contained in:
Violet Caulfield
2025-02-11 16:29:33 -06:00
parent b451668c1c
commit 6c7ee5086d
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ const CarPlayHome : ListTemplate = new ListTemplate({
tabTitle: "Home",
sections: [
{
header: Client.user!.name,
header: `Hi ${Client.user?.name ?? "there"}`,
items: [
{ id: QueryKeys.RecentlyPlayedArtists, text: 'Recent Artists' },
{ id: QueryKeys.RecentlyPlayed, text: 'Recently Played'},

View File

@@ -12,7 +12,7 @@ export const CarPlayRecentlyPlayed = (recentTracks : BaseItemDto[]) => new GridT
track.Name ? track.Name : "Untitled Track"
],
image: {
uri: getImageApi(Client.api!).getItemImageUrlById(track.Id!)
uri: Client.api ? getImageApi(Client.api).getItemImageUrlById(track.Id!) : ""
}
}
})