Skip to content

Commit

Permalink
added request config
Browse files Browse the repository at this point in the history
  • Loading branch information
KlemenSpruk committed Oct 26, 2023
1 parent 16551d4 commit 80886e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vue/components/profile-search.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script setup lang="ts">
import { apiClient, gettext } from '@velis/dynamicforms';
import { AxiosRequestConfig } from 'axios';
import { computed, ref } from 'vue';
import { Ref } from 'vue/dist/vue';
// eslint-disable-next-line import/no-extraneous-dependencies
Expand Down Expand Up @@ -31,7 +32,7 @@ const selectOptions = computed(() => options.value);
function asyncSearch(query: string) {
searching.value = true;
apiClient.get(`${searchUrl}?search=${query}`).then((response) => {
apiClient.get(`${searchUrl}?search=${query}`, { showProgress: false } as AxiosRequestConfig).then((response) => {
options.value = response.data;
searching.value = false;
});
Expand Down

0 comments on commit 80886e3

Please sign in to comment.