mirror of
https://github.com/Jellify-Music/App.git
synced 2026-04-24 03:49:11 -05:00
oh hell
This commit is contained in:
@@ -7,10 +7,9 @@ import Client from "../client";
|
||||
|
||||
export const useItemTracks = (itemId: string, sort: boolean = false) => useQuery({
|
||||
queryKey: [QueryKeys.ItemTracks, itemId, sort],
|
||||
queryFn: ({ queryKey }) => {
|
||||
queryFn: () => {
|
||||
|
||||
const itemId : string = queryKey[1] as string;
|
||||
const sort : boolean = queryKey[3] as boolean;
|
||||
console.debug(`Fetching item tracks ${sort ? "sorted" : "unsorted"}`)
|
||||
|
||||
let sortBy: ItemSortBy[] = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user