Skip to content

Commit 0560564

Browse files
authored
Remove reference to lodash (#1524)
* Remove reference to lodash * Update review.yml
1 parent 930b870 commit 0560564

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/review.yml

+3
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ jobs:
1313
with:
1414
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
1515
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
16+
env:
17+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
18+
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

packages/app/app/components/LyricsView/index.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react';
2-
import _ from 'lodash';
32
import { Icon } from 'semantic-ui-react';
43
import { useTranslation } from 'react-i18next';
54

@@ -21,7 +20,7 @@ export const LyricsView: React.FC<LyricsViewProps> = ({
2120
track
2221
}) => {
2322
const { t } = useTranslation('lyrics');
24-
let lyricsStr = _.get(lyricsSearchResults, 'type', '');
23+
let lyricsStr = lyricsSearchResults?.type ?? '';
2524
if (lyricsStr === '') {
2625
lyricsStr = t('not-found');
2726
}

0 commit comments

Comments
 (0)