From f26b7b3e50f98ff26268b863c08efa3d89da8a5b Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Thu, 18 Jan 2024 12:04:09 +0800 Subject: [PATCH] fix finally data isn't applied --- src/libs/actions/OnyxUpdates.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/actions/OnyxUpdates.ts b/src/libs/actions/OnyxUpdates.ts index d89f10ee9c7b..25b4d85e7b88 100644 --- a/src/libs/actions/OnyxUpdates.ts +++ b/src/libs/actions/OnyxUpdates.ts @@ -86,7 +86,7 @@ function apply({lastUpdateID, type, request, response, updates}: OnyxUpdatesFrom // In this case, we're already received the OnyxUpdate included in the response, so we don't need to apply it again. // However, we do need to apply the successData and failureData from the request - if (type === CONST.ONYX_UPDATE_TYPES.HTTPS && request && response && (!isEmptyObject(request.successData) || !isEmptyObject(request.failureData))) { + if (type === CONST.ONYX_UPDATE_TYPES.HTTPS && request && response && (!isEmptyObject(request.successData) || !isEmptyObject(request.failureData) || !isEmptyObject(request.finallyData))) { Log.info('[OnyxUpdateManager] Applying success or failure data from request without onyxData from response'); // We use a spread here instead of delete because we don't want to change the response for other middlewares