mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-18 08:50:04 -06:00
queuing stuff
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { isEmpty } from "lodash";
|
||||
import { QueuingType } from "../../../enums/queuing-type";
|
||||
import { JellifyTrack } from "../../../types/JellifyTrack";
|
||||
|
||||
@@ -20,7 +21,7 @@ export const findPlayNextIndexStart = (playQueue: JellifyTrack[]) => {
|
||||
*/
|
||||
export const findPlayQueueIndexStart = (playQueue: JellifyTrack[]) => {
|
||||
|
||||
if (playQueue.length === 0)
|
||||
if (isEmpty(playQueue))
|
||||
return 0;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user