Fix terms carousel block order.
This commit is contained in:
parent
a6abfece66
commit
55d03f6aae
|
@ -240,7 +240,7 @@ export default {
|
||||||
|
|
||||||
this.termsRequestSource = axios.CancelToken.source();
|
this.termsRequestSource = axios.CancelToken.source();
|
||||||
|
|
||||||
let endpoint = '/taxonomy/' + this.taxonomyId + '/terms/?'+ qs.stringify({ hideempty: 0, include: this.selectedTerms }) + '&fetch_only=id,name,url,header_image';
|
let endpoint = '/taxonomy/' + this.taxonomyId + '/terms/?'+ qs.stringify({ hideempty: 0, include: this.selectedTerms }) + '&order=asc&fetch_only=id,name,url,header_image';
|
||||||
|
|
||||||
this.tainacanAxios.get(endpoint, { cancelToken: this.termsRequestSource.token })
|
this.tainacanAxios.get(endpoint, { cancelToken: this.termsRequestSource.token })
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
|
|
@ -210,7 +210,7 @@ registerBlockType('tainacan/carousel-terms-list', {
|
||||||
|
|
||||||
terms = [];
|
terms = [];
|
||||||
|
|
||||||
let endpoint = '/taxonomy/' + taxonomyId + '/terms/?'+ qs.stringify({ hideempty: 0, include: selectedTerms }) + '&fetch_only=id,name,url,header_image';
|
let endpoint = '/taxonomy/' + taxonomyId + '/terms/?'+ qs.stringify({ hideempty: 0, include: selectedTerms }) + '&order=asc&fetch_only=id,name,url,header_image';
|
||||||
tainacan.get(endpoint, { cancelToken: itemsRequestSource.token })
|
tainacan.get(endpoint, { cancelToken: itemsRequestSource.token })
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue