File tree 2 files changed +4
-2
lines changed
packages/app/app/components/LyricsView
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 13
13
with :
14
14
OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
15
15
GITHUB_TOKEN : ${{ secrets.ACCESS_TOKEN }}
16
+ env :
17
+ OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
18
+ GITHUB_TOKEN : ${{ secrets.ACCESS_TOKEN }}
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
- import _ from 'lodash' ;
3
2
import { Icon } from 'semantic-ui-react' ;
4
3
import { useTranslation } from 'react-i18next' ;
5
4
@@ -21,7 +20,7 @@ export const LyricsView: React.FC<LyricsViewProps> = ({
21
20
track
22
21
} ) => {
23
22
const { t } = useTranslation ( 'lyrics' ) ;
24
- let lyricsStr = _ . get ( lyricsSearchResults , ' type' , '' ) ;
23
+ let lyricsStr = lyricsSearchResults ?. type ?? '' ;
25
24
if ( lyricsStr === '' ) {
26
25
lyricsStr = t ( 'not-found' ) ;
27
26
}
You can’t perform that action at this time.
0 commit comments