mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 18:33:33 +00:00
Fix legacy normalizations
This commit is contained in:
parent
8a0a8e4d54
commit
2101f1e9a7
6 changed files with 8 additions and 10 deletions
|
|
@ -146,8 +146,7 @@ export const PlaylistDetailSongListHeaderFilters = ({
|
|||
{ cacheTime: 1000 * 60 * 1 },
|
||||
);
|
||||
|
||||
const songs = api.normalize.songList(songsRes, server);
|
||||
params.successCallback(songs?.items || [], songsRes?.totalRecordCount || 0);
|
||||
params.successCallback(songsRes?.items || [], songsRes?.totalRecordCount || 0);
|
||||
},
|
||||
rowCount: undefined,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -90,8 +90,7 @@ export const PlaylistListContent = ({ tableRef, itemCount }: PlaylistListContent
|
|||
{ cacheTime: 1000 * 60 * 1 },
|
||||
);
|
||||
|
||||
const playlists = api.normalize.playlistList(playlistsRes, server);
|
||||
params.successCallback(playlists?.items || [], playlistsRes?.totalRecordCount || 0);
|
||||
params.successCallback(playlistsRes?.items || [], playlistsRes?.totalRecordCount || 0);
|
||||
},
|
||||
rowCount: undefined,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -97,8 +97,7 @@ export const PlaylistListHeaderFilters = ({ tableRef }: PlaylistListHeaderFilter
|
|||
{ cacheTime: 1000 * 60 * 1 },
|
||||
);
|
||||
|
||||
const playlists = api.normalize.playlistList(playlistsRes, server);
|
||||
params.successCallback(playlists?.items || [], playlistsRes?.totalRecordCount || 0);
|
||||
params.successCallback(playlistsRes?.items || [], playlistsRes?.totalRecordCount || 0);
|
||||
},
|
||||
rowCount: undefined,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue