Fix task creation on dashboard [SCI-11755]

This commit is contained in:
Anton 2025-04-02 10:49:45 +02:00
parent 9b6f1ff631
commit 172201f3a8

View file

@ -370,7 +370,16 @@ export default {
fetchOptions() {
if (this.optionsUrl) {
const params = { query: this.query, page: this.nextPage, ...this.urlParams };
axios({ method: this.ajaxMethod, url: this.optionsUrl, data: params })
let request = {};
if (this.ajaxMethod === 'get') {
request = { method: 'get', url: this.optionsUrl, params };
} else {
request = { method: 'post', url: this.optionsUrl, data: params };
}
axios(request)
.then((response) => {
if (response.data.paginated) {
this.fetchedOptions = [...this.fetchedOptions, ...response.data.data];