Skip to content

Commit

Permalink
Fix order of ancestors in SkosmosApi
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Jan 19, 2022
1 parent 63cc059 commit 5ccc0fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/skosmos-api-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ export default class SkosmosApiProvider extends BaseProvider {
while (uri) {
if (uri != concept.uri) {
const ancestor = _.get(response, `broaderTransitive["${uri}"]`)
ancestors = [ancestor].concat(ancestors)
ancestors = ancestors.concat([ancestor])
}
uri = _.get(response, `broaderTransitive["${uri}"].broader[0]`)
}
Expand Down

0 comments on commit 5ccc0fc

Please sign in to comment.