diff --git a/src/renderer/features/context-menu/context-menu-provider.tsx b/src/renderer/features/context-menu/context-menu-provider.tsx index 5d6b913c..19937b86 100644 --- a/src/renderer/features/context-menu/context-menu-provider.tsx +++ b/src/renderer/features/context-menu/context-menu-provider.tsx @@ -413,7 +413,6 @@ export const ContextMenuProvider = ({ children }: ContextMenuProviderProps) => { if (ctx.dataNodes) { for (const node of ctx.dataNodes) { - console.log('node.data.itemType :>> ', node.data.itemType); switch (node.data.itemType) { case LibraryItem.ALBUM: albumId.push(node.data.id); @@ -448,8 +447,6 @@ export const ContextMenuProvider = ({ children }: ContextMenuProviderProps) => { } } - console.log('genreId', genreId); - openContextModal({ innerProps: { albumId: albumId.length > 0 ? albumId : undefined, diff --git a/src/renderer/features/lyrics/lyrics.tsx b/src/renderer/features/lyrics/lyrics.tsx index 1f376067..027dde5f 100644 --- a/src/renderer/features/lyrics/lyrics.tsx +++ b/src/renderer/features/lyrics/lyrics.tsx @@ -1,7 +1,6 @@ import { useCallback, useEffect, useState } from 'react'; import { Center, Group } from '@mantine/core'; import { AnimatePresence, motion } from 'framer-motion'; -import { clear } from 'idb-keyval'; import { ErrorBoundary } from 'react-error-boundary'; import { RiInformationFill } from 'react-icons/ri'; import styled from 'styled-components'; @@ -162,7 +161,7 @@ export const Lyrics = () => { const isLoadingLyrics = isInitialLoading || isOverrideLoading; - const hasNoLyrics = !data?.lyrics || clear; + const hasNoLyrics = !data?.lyrics; const lyricsMetadata: | Partial diff --git a/src/renderer/features/lyrics/queries/lyric-query.ts b/src/renderer/features/lyrics/queries/lyric-query.ts index 574e66c6..b7ab064b 100644 --- a/src/renderer/features/lyrics/queries/lyric-query.ts +++ b/src/renderer/features/lyrics/queries/lyric-query.ts @@ -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,