diff --git a/src/admin/components/edition/collection-edition-form.vue b/src/admin/components/edition/collection-edition-form.vue index 804e06641..4b203c526 100644 --- a/src/admin/components/edition/collection-edition-form.vue +++ b/src/admin/components/edition/collection-edition-form.vue @@ -696,10 +696,10 @@ export default { // Generates options for parent collection this.isFetchingCollections = true; this.fetchCollectionsForParent() - .then((collections) => { - this.collections = collections; - this.isFetchingCollections = false; - }) + .then((collections) => { + this.collections = collections; + this.isFetchingCollections = false; + }) .catch((error) => { this.$console.error(error); this.isFetchingCollections = false; diff --git a/src/admin/components/edition/importer-mapping-form.vue b/src/admin/components/edition/importer-mapping-form.vue index cab54d9fc..dc5b8d26f 100644 --- a/src/admin/components/edition/importer-mapping-form.vue +++ b/src/admin/components/edition/importer-mapping-form.vue @@ -232,9 +232,6 @@ export default { 'runImporter', 'fetchMappingImporter' ]), - ...mapActions('collection', [ - 'fetchCollectionsForParent' - ]), ...mapActions('bgprocess', [ 'fetchProcess' ]), diff --git a/src/js/store/modules/collection/actions.js b/src/js/store/modules/collection/actions.js index 03b7efe7d..88ce46ebb 100644 --- a/src/js/store/modules/collection/actions.js +++ b/src/js/store/modules/collection/actions.js @@ -447,7 +447,7 @@ export const fetchUsers = ({ commit }, { search, exceptions }) => { // Fetch Collections for choosing Parent Collection export const fetchCollectionsForParent = ({ commit }) => { return new Promise((resolve, reject) => { - axios.tainacan.get('/collections/?fetch_only=name,id') + axios.tainacan.get('/collections/?nopaging=1fetch_only=name,id') .then(res => { let collections = res.data; resolve( collections );