Skip to content

Commit

Permalink
fix: potential null of .previous array
Browse files Browse the repository at this point in the history
- fixed one rare case where .previous may be "null" instead of an empty array
  • Loading branch information
Vexify4103 committed Feb 26, 2025
1 parent 2214512 commit f56b019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/Queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class Queue extends Array<Track> {
public current: Track | null = null;

/** The previous tracks */
public previous: Track[] | null = null;
public previous: Track[] = [];

/** The Manager instance. */
public manager: Manager;
Expand Down

0 comments on commit f56b019

Please sign in to comment.