Skip to content

Commit

Permalink
fix: no source_record_url when empty
Browse files Browse the repository at this point in the history
  • Loading branch information
tokebe committed Apr 12, 2024
1 parent ceba1c5 commit ae9e3e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ export class Record {
}

get provenanceChain(): TrapiSource[] {
const source_urls = this._mappedResponse.source_url ?? [];
const source_urls = this._mappedResponse.source_url ?? undefined;
let returnValue: TrapiSource[] = [];
if (this._mappedResponse.trapi_sources) {
returnValue = _.cloneDeep(this._mappedResponse.trapi_sources);
Expand Down

0 comments on commit ae9e3e7

Please sign in to comment.