Fix clear, clean up

This commit is contained in:
jeffvli 2023-08-04 12:29:55 -07:00
parent f6d239d87c
commit 1327d58b23
3 changed files with 1 additions and 12 deletions

View file

@ -93,8 +93,6 @@ export const useSongLyricsBySong = (
if (!server) throw new Error('Server not found');
if (!song) return null;
console.log('refetching song lyrics');
if (song.lyrics) {
return {
artist: song.artists?.[0]?.name,
@ -166,11 +164,6 @@ export const useSongLyricsByRemoteId = (
source: query.remoteSource,
};
console.log(
'queryKeys.songs.lyrics(serverId, { songId: query.song.id }) :>> ',
queryKeys.songs.lyrics(serverId, { songId: query.song.id }),
);
queryClient.setQueryData(
queryKeys.songs.lyrics(serverId, { songId: query.song.id }),
lyricsResult,