diff --git a/src/admin/components/advanced-search/advanced-search.vue b/src/admin/components/advanced-search/advanced-search.vue index 3af26832a..c6ba0494e 100644 --- a/src/admin/components/advanced-search/advanced-search.vue +++ b/src/admin/components/advanced-search/advanced-search.vue @@ -247,6 +247,7 @@ isRepositoryLevel: this.isRepositoryLevel, isContextEdit: false, includeDisabled: false, + isAdvancedSearch: true }).then((metadata) => { this.metadata = metadata; this.metadataIsLoading = false; diff --git a/src/admin/components/navigation/tainacan-header.vue b/src/admin/components/navigation/tainacan-header.vue index ce527e2f7..d6583184b 100644 --- a/src/admin/components/navigation/tainacan-header.vue +++ b/src/admin/components/navigation/tainacan-header.vue @@ -90,7 +90,6 @@ diff --git a/src/js/store/modules/metadata/actions.js b/src/js/store/modules/metadata/actions.js index 13eb7c87e..ae0e1f2c0 100644 --- a/src/js/store/modules/metadata/actions.js +++ b/src/js/store/modules/metadata/actions.js @@ -1,6 +1,6 @@ import axios from '../../../axios/axios'; -export const fetchMetadata = ({commit}, {collectionId, isRepositoryLevel, isContextEdit, includeDisabled}) => { +export const fetchMetadata = ({commit}, {collectionId, isRepositoryLevel, isContextEdit, includeDisabled, isAdvancedSearch}) => { return new Promise((resolve, reject) => { let endpoint = ''; @@ -20,7 +20,8 @@ export const fetchMetadata = ({commit}, {collectionId, isRepositoryLevel, isCont axios.tainacan.get(endpoint) .then((res) => { let metadata = res.data; - commit('setMetadata', metadata); + if (!isAdvancedSearch) + commit('setMetadata', metadata); resolve(metadata); }) .catch((error) => {