diff --git a/src/renderer/components/card/card-rows.tsx b/src/renderer/components/card/card-rows.tsx index 67e62db1..4dbfc0e6 100644 --- a/src/renderer/components/card/card-rows.tsx +++ b/src/renderer/components/card/card-rows.tsx @@ -166,7 +166,7 @@ export const ALBUM_CARD_ROWS: { [key: string]: CardRow } = { property: 'playCount', }, rating: { - property: 'rating', + property: 'userRating', }, releaseDate: { property: 'releaseDate', @@ -203,7 +203,7 @@ export const ALBUMARTIST_CARD_ROWS: { [key: string]: CardRow } = { property: 'playCount', }, rating: { - property: 'rating', + property: 'userRating', }, songCount: { property: 'songCount', diff --git a/src/renderer/features/albums/components/album-list-content.tsx b/src/renderer/features/albums/components/album-list-content.tsx index 54878b5f..8e39fce3 100644 --- a/src/renderer/features/albums/components/album-list-content.tsx +++ b/src/renderer/features/albums/components/album-list-content.tsx @@ -98,16 +98,19 @@ export const AlbumListContent = ({ gridRef, tableRef }: AlbumListContentProps) = ...page.filter, }); - const albumsRes = await queryClient.fetchQuery(queryKey, async ({ signal }) => - api.controller.getAlbumList({ - query: { - limit, - startIndex, - ...page.filter, - }, - server, - signal, - }), + const albumsRes = await queryClient.fetchQuery( + queryKey, + async ({ signal }) => + api.controller.getAlbumList({ + query: { + limit, + startIndex, + ...page.filter, + }, + server, + signal, + }), + { cacheTime: 1000 * 60 * 1 }, ); const albums = api.normalize.albumList(albumsRes, server); diff --git a/src/renderer/features/albums/components/album-list-header.tsx b/src/renderer/features/albums/components/album-list-header.tsx index b069bad6..aaa0448b 100644 --- a/src/renderer/features/albums/components/album-list-header.tsx +++ b/src/renderer/features/albums/components/album-list-header.tsx @@ -133,16 +133,19 @@ export const AlbumListHeader = ({ gridRef, tableRef }: AlbumListHeaderProps) => ...filters, }); - const albums = await queryClient.fetchQuery(queryKey, async ({ signal }) => - controller.getAlbumList({ - query: { - limit: take, - startIndex: skip, - ...filters, - }, - server, - signal, - }), + const albums = await queryClient.fetchQuery( + queryKey, + async ({ signal }) => + controller.getAlbumList({ + query: { + limit: take, + startIndex: skip, + ...filters, + }, + server, + signal, + }), + { cacheTime: 1000 * 60 * 1 }, ); return api.normalize.albumList(albums, server); @@ -167,16 +170,19 @@ export const AlbumListHeader = ({ gridRef, tableRef }: AlbumListHeaderProps) => ...filters, }); - const albumsRes = await queryClient.fetchQuery(queryKey, async ({ signal }) => - api.controller.getAlbumList({ - query: { - limit, - startIndex, - ...filters, - }, - server, - signal, - }), + const albumsRes = await queryClient.fetchQuery( + queryKey, + async ({ signal }) => + api.controller.getAlbumList({ + query: { + limit, + startIndex, + ...filters, + }, + server, + signal, + }), + { cacheTime: 1000 * 60 * 1 }, ); const albums = api.normalize.albumList(albumsRes, server);