Skip to content

Commit

Permalink
Fix #1628
Browse files Browse the repository at this point in the history
  • Loading branch information
jlpereira committed Jul 22, 2020
1 parent 83dc440 commit b6df8c4
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,13 @@ export default {
AjaxCall('get', `/taxon_names/${this.taxon.cached_valid_taxon_name_id}.json`).then(res => {
this.validTaxon = res.body
this.isLoading = true
AjaxCall('get', `/taxon_names.json?taxon_name_id[]=${this.taxon.id}&descendants=true`).then(response => {
this.childrenList = response.body.filter(item => { return item.id != this.taxon.id })
AjaxCall('get', '/taxon_names.json', {
params: {
taxon_name_id: [this.taxon.id],
descendants: true,
taxon_name_type: 'Protonym'
}}).then(response => {
this.childrenList = response.body.filter(item => { return item.id !== this.taxon.id })
this.isLoading = false
})
})
Expand Down

0 comments on commit b6df8c4

Please sign in to comment.