fix: fetch all local playlists for duplicate detection

This commit is contained in:
Darkraise
2026-02-15 01:15:57 +07:00
parent d0681ef3ab
commit b2456efe40
@@ -38,7 +38,8 @@ export function BrowseCommunityPlaylistsModal({
const [downloadedInSession, setDownloadedInSession] = useState<Set<string>>(new Set());
const { data, isLoading, error, refetch } = useCommunityPlaylists();
const { data: localPlaylistsData } = usePlaylists();
// Fetch all playlists for duplicate detection (use high limit)
const { data: localPlaylistsData } = usePlaylists(1, 1000);
const localPlaylists = localPlaylistsData?.data ?? [];
const downloadMutation = useDownloadCommunityPlaylist();
const { showToast } = useDialog();