diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml index 0efe67e88b..b775922d34 100644 --- a/.github/workflows/review.yml +++ b/.github/workflows/review.yml @@ -13,3 +13,6 @@ jobs: with: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} + env: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} diff --git a/packages/app/app/components/LyricsView/index.tsx b/packages/app/app/components/LyricsView/index.tsx index ad258d8b35..a086114a79 100644 --- a/packages/app/app/components/LyricsView/index.tsx +++ b/packages/app/app/components/LyricsView/index.tsx @@ -1,5 +1,4 @@ import React from 'react'; -import _ from 'lodash'; import { Icon } from 'semantic-ui-react'; import { useTranslation } from 'react-i18next'; @@ -21,7 +20,7 @@ export const LyricsView: React.FC = ({ track }) => { const { t } = useTranslation('lyrics'); - let lyricsStr = _.get(lyricsSearchResults, 'type', ''); + let lyricsStr = lyricsSearchResults?.type ?? ''; if (lyricsStr === '') { lyricsStr = t('not-found'); }