File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,12 @@ export function Playlist({
4141 } }
4242 > </ span >
4343 < span className = "aplayer-list-index" > { index + 1 } </ span >
44- < span className = "aplayer-list-title" > { audioInfo . name } </ span >
45- < span className = "aplayer-list-author" > { audioInfo . artist } </ span >
44+ < span className = "aplayer-list-title" >
45+ { audioInfo . name ?? "Audio name" }
46+ </ span >
47+ < span className = "aplayer-list-author" >
48+ { audioInfo . artist ?? "Audio artist" }
49+ </ span >
4650 </ li >
4751 ) ) }
4852 </ ol >
Original file line number Diff line number Diff line change @@ -105,8 +105,13 @@ export function APlayer({
105105 </ div >
106106 < div className = "aplayer-info" >
107107 < div className = "aplayer-music" >
108- < span className = "aplayer-title" > { playingAudio ?. name } </ span >
109- < span className = "aplayer-author" > - { playingAudio ?. artist } </ span >
108+ < span className = "aplayer-title" >
109+ { playingAudio ?. name ?? "Audio name" }
110+ </ span >
111+ < span className = "aplayer-author" >
112+ { " " }
113+ - { playingAudio ?. artist ?? "Audio artist" }
114+ </ span >
110115 </ div >
111116 < div className = "aplayer-lrc" > </ div >
112117 < PlaybackControls
You can’t perform that action at this time.
0 commit comments