From 5dbc35aa9be72435d92877e686f3b08e6dbf521b Mon Sep 17 00:00:00 2001 From: lovegaoshi <106490582+lovegaoshi@users.noreply.github.com> Date: Thu, 29 Aug 2024 12:11:29 -0700 Subject: [PATCH] fix: cleanPlaylist --- package.json | 4 ++-- src/hooks/usePlaylistCRUD.ts | 2 +- yarn.lock | 23 +++++++++++++++++------ 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 77ee8be5c..876fc06d3 100644 --- a/package.json +++ b/package.json @@ -122,12 +122,12 @@ }, "devDependencies": { "@babel/core": "^7.25.2", - "@babel/plugin-syntax-import-attributes": "^7.24.7", + "@babel/plugin-syntax-import-attributes": "^7.25.6", "@babel/plugin-transform-export-namespace-from": "^7.24.7", "@babel/plugin-transform-private-methods": "^7.25.4", "@babel/preset-env": "^7.25.4", "@babel/preset-typescript": "^7.24.7", - "@babel/runtime": "^7.25.4", + "@babel/runtime": "^7.25.6", "@react-native-community/eslint-config": "^3.2.0", "@tsconfig/react-native": "^3.0.5", "@types/base-64": "^1.0.2", diff --git a/src/hooks/usePlaylistCRUD.ts b/src/hooks/usePlaylistCRUD.ts index 0e175738f..d31a81277 100644 --- a/src/hooks/usePlaylistCRUD.ts +++ b/src/hooks/usePlaylistCRUD.ts @@ -122,7 +122,7 @@ const usePlaylistCRUD = (mPlaylist?: NoxMedia.Playlist) => { uniqBVIds.forEach(bvid => promises.push( fetchBiliBVIDs([bvid]).then(val => { - if (val) validBVIds.push(bvid); + if (val.length > 0) validBVIds.push(bvid); }) ) ); diff --git a/yarn.lock b/yarn.lock index 4d9bf235f..e6a343aa1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1276,6 +1276,17 @@ __metadata: languageName: node linkType: hard +"@babel/plugin-syntax-import-attributes@npm:^7.25.6": + version: 7.25.6 + resolution: "@babel/plugin-syntax-import-attributes@npm:7.25.6" + dependencies: + "@babel/helper-plugin-utils": "npm:^7.24.8" + peerDependencies: + "@babel/core": ^7.0.0-0 + checksum: 10c0/0e9359cf2d117476310961dfcfd7204ed692e933707da10d6194153d3996cd2ea5b7635fc90d720dce3612083af89966bb862561064a509c350320dc98644751 + languageName: node + linkType: hard + "@babel/plugin-syntax-import-meta@npm:^7.10.4, @babel/plugin-syntax-import-meta@npm:^7.8.3": version: 7.10.4 resolution: "@babel/plugin-syntax-import-meta@npm:7.10.4" @@ -2701,12 +2712,12 @@ __metadata: languageName: node linkType: hard -"@babel/runtime@npm:^7.25.4": - version: 7.25.4 - resolution: "@babel/runtime@npm:7.25.4" +"@babel/runtime@npm:^7.25.6": + version: 7.25.6 + resolution: "@babel/runtime@npm:7.25.6" dependencies: regenerator-runtime: "npm:^0.14.0" - checksum: 10c0/33e937e685f0bfc2d40c219261e2e50d0df7381a6e7cbf56b770e0c5d77cb0c21bf4d97da566cf0164317ed7508e992082c7b6cce7aaa3b17da5794f93fbfb46 + checksum: 10c0/d6143adf5aa1ce79ed374e33fdfd74fa975055a80bc6e479672ab1eadc4e4bfd7484444e17dd063a1d180e051f3ec62b357c7a2b817e7657687b47313158c3d2 languageName: node linkType: hard @@ -7037,12 +7048,12 @@ __metadata: resolution: "azusa-player-mobile@workspace:." dependencies: "@babel/core": "npm:^7.25.2" - "@babel/plugin-syntax-import-attributes": "npm:^7.24.7" + "@babel/plugin-syntax-import-attributes": "npm:^7.25.6" "@babel/plugin-transform-export-namespace-from": "npm:^7.24.7" "@babel/plugin-transform-private-methods": "npm:^7.25.4" "@babel/preset-env": "npm:^7.25.4" "@babel/preset-typescript": "npm:^7.24.7" - "@babel/runtime": "npm:^7.25.4" + "@babel/runtime": "npm:^7.25.6" "@react-native-async-storage/async-storage": "npm:^2.0.0" "@react-native-community/eslint-config": "npm:^3.2.0" "@react-native-community/netinfo": "npm:^11.3.2"