diff --git a/src/libs/API.js b/src/libs/API.js index 7ea462c1ab6a..0612996fc555 100644 --- a/src/libs/API.js +++ b/src/libs/API.js @@ -51,13 +51,7 @@ function write(command, apiCommandParameters = {}, onyxData = {}) { // Assemble all the request data we'll be storing in the queue const request = { command, - data: { - ...data, - - // This should be removed once we are no longer using deprecatedAPI https://github.com/Expensify/Expensify/issues/215650 - shouldRetry: true, - canCancel: true, - }, + data, ..._.omit(onyxData, 'optimisticData'), };