File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -333,13 +333,12 @@ class MusicSheetClazz implements IInjectable {
333333 if (
334334 ! musicSheets
335335 . find ( _ => _ . id === sheetId )
336- ?. coverImg ?. startsWith ( "file://" )
336+ ?. coverImg ?. startsWith ?. ( "file://" )
337337 ) {
338338 await this . updateMusicSheetBase ( sheetId , {
339339 coverImg : musicList . at ( 0 ) ?. artwork ,
340340 } ) ;
341341 }
342-
343342 // 更新音乐数量
344343 getDefaultStore ( ) . set (
345344 musicSheetsBaseAtom ,
@@ -350,7 +349,6 @@ class MusicSheetClazz implements IInjectable {
350349 }
351350 } ) ,
352351 ) ;
353-
354352 await storage . setMusicList ( sheetId , musicList . musicList ) ;
355353 ee . emit ( "UpdateMusicList" , {
356354 sheetId,
@@ -415,7 +413,7 @@ class MusicSheetClazz implements IInjectable {
415413 if (
416414 ! musicSheets
417415 . find ( _ => _ . id === sheetId )
418- ?. coverImg ?. startsWith ( "file://" )
416+ ?. coverImg ?. startsWith ?. ( "file://" )
419417 ) {
420418 patchData . coverImg = musicList . at ( 0 ) ?. artwork ;
421419 }
You can’t perform that action at this time.
0 commit comments