Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
fix(trifid): do not call replace on nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
vhf committed Oct 28, 2019
1 parent 8588bb0 commit a406e4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trifid/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async function trifidMiddleware (config) {
options: {
url: config.ontology.ontologyRawUrl,
contentType: 'application/n-triples',
resource: `${config.ontology.datasetBaseUrl}${config.ontology.ontologyResourceUrl.replace(new RegExp('^/', 'g'), '') || ''}`
resource: `${config.ontology.datasetBaseUrl}${(config.ontology.ontologyResourceUrl || '').replace(new RegExp('^/', 'g'), '') || ''}`
}
}
}
Expand Down

0 comments on commit a406e4a

Please sign in to comment.