Skip to content

Commit

Permalink
chore: dont do a request if get_queue_ids number is zero
Browse files Browse the repository at this point in the history
  • Loading branch information
vixalien committed May 23, 2024
1 parent fda6e76 commit 1afa21b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mixins/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ export async function get_queue_ids(
videoIds: string[],
options: AbortOptions = {},
) {
if (videoIds.length === 0) return [];

const response = await request_json("music/get_queue", {
data: {
videoIds,
Expand Down

0 comments on commit 1afa21b

Please sign in to comment.