Skip to content

Commit

Permalink
pkp/pkp-lib#7135 Make the aborting multiple previous request reliable…
Browse files Browse the repository at this point in the history
… in useFetch
  • Loading branch information
jardakotesovec committed Jan 16, 2025
1 parent bf4434f commit 0a11615
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/composables/useFetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ export function getCSRFToken() {
* - https://github.com/unjs/ufo/issues/185
* - https://github.com/unjs/ufo/issues/208
* - https://github.com/unjs/ofetch/pull/440
*
*
*/
function _formatQueryParams(params) {
if (!params) {
return {}
return {};
}

const formatedParams = {};
Expand Down Expand Up @@ -166,7 +166,6 @@ export function useFetch(url, options = {}) {

modalStore.openDialogNetworkError(e);
} finally {
lastRequestController = null;
isLoading.value = false;
progressStore.fetchFinished(screenName);
if (opts.showFullScreenSpinner) {
Expand Down

0 comments on commit 0a11615

Please sign in to comment.