diff --git a/src/libs/actions/PersistedRequests.ts b/src/libs/actions/PersistedRequests.ts index cee89f1fe231..77d6e3884380 100644 --- a/src/libs/actions/PersistedRequests.ts +++ b/src/libs/actions/PersistedRequests.ts @@ -116,7 +116,7 @@ function rollbackOngoingRequest() { } // Prepend ongoingRequest to persistedRequests - persistedRequests = [ongoingRequest, ...persistedRequests]; + persistedRequests.unshift(ongoingRequest); // Clear the ongoingRequest ongoingRequest = null;