Skip to content

Commit

Permalink
Update Discogs.ts (#1526)
Browse files Browse the repository at this point in the history
  • Loading branch information
nukeop authored Nov 8, 2023
1 parent 018aacd commit b1f19af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/rest/Discogs.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -34,7 +34,7 @@ function releaseInfo(
releaseType: DiscogsSearchType,
release: DiscogsRelease
): Promise<Response> {
const resource_url = _.get(release, 'resource_url');
const resource_url = release?.resource_url);
if (resource_url) {
return fetch(resource_url + addToken({}));
}
Expand Down

0 comments on commit b1f19af

Please sign in to comment.