From cea6987f72d576e1f82562fb1782e91fb054ebd9 Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Tue, 22 Aug 2023 23:40:30 +0000 Subject: [PATCH] fix ealy return --- packages/comty.js/src/models/music/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/comty.js/src/models/music/index.js b/packages/comty.js/src/models/music/index.js index 0acefd2a..fc2bceba 100644 --- a/packages/comty.js/src/models/music/index.js +++ b/packages/comty.js/src/models/music/index.js @@ -37,7 +37,10 @@ export default class MusicModel { }, async () => { if (!useTidal) { - return [] + return { + total_length: 0, + tracks: [], + } } const tidalResult = await SyncModel.tidalCore.getMyFavoriteTracks({