[fix] Cherry pick conflict merge error

This commit is contained in:
ljf 2021-05-08 22:49:08 +02:00
parent 5b6a1cdd74
commit 0413c070f7

View file

@ -99,6 +99,11 @@ export default {
options = { ...options, method, body: objectToParams(data, { addLocale: true }, true) } options = { ...options, method, body: objectToParams(data, { addLocale: true }, true) }
} }
const response = await fetch('/yunohost/api/' + uri, options)
const responseData = await getResponseData(response)
store.dispatch('END_REQUEST', { request, success: response.ok, wait })
return response.ok ? responseData : handleError(request, response, responseData)
}, },