From b1f19af5ab1e85489bbe287b6659a0904aaab72d Mon Sep 17 00:00:00 2001 From: nukeop <12746779+nukeop@users.noreply.github.com> Date: Wed, 8 Nov 2023 01:38:02 +0100 Subject: [PATCH] Update Discogs.ts (#1526) --- packages/core/src/rest/Discogs.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/rest/Discogs.ts b/packages/core/src/rest/Discogs.ts index b5e5d9ac3e..e20198ddae 100644 --- a/packages/core/src/rest/Discogs.ts +++ b/packages/core/src/rest/Discogs.ts @@ -1,4 +1,4 @@ -import _, { isArray, mapValues } from 'lodash'; +import { isArray, mapValues } from 'lodash'; import querystring from 'querystring'; import { DiscogsSearchType, DiscogsRelease, DiscogsSearchArgs, DiscogsArtistReleaseSearchResult } from './Discogs.types'; @@ -34,7 +34,7 @@ function releaseInfo( releaseType: DiscogsSearchType, release: DiscogsRelease ): Promise { - const resource_url = _.get(release, 'resource_url'); + const resource_url = release?.resource_url); if (resource_url) { return fetch(resource_url + addToken({})); }