mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-16 05:36:00 +02:00
disable sidebar lyrics fetcher if panel is closed
This commit is contained in:
@@ -53,6 +53,9 @@ const BottomPanel = () => {
|
||||
const { data: lyricsData } = useQuery(
|
||||
lyricsQueries.songLyrics(
|
||||
{
|
||||
options: {
|
||||
enabled: showLyricsInSidebar && !!currentSong?.id,
|
||||
},
|
||||
query: { songId: currentSong?.id || '' },
|
||||
serverId: currentSong?._serverId || '',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user