From f651733b456a1ce71bf9e0815c11cae42c93246b Mon Sep 17 00:00:00 2001 From: * <*> Date: Tue, 18 Apr 2023 10:30:01 +0800 Subject: [PATCH] Match-id-8498afa1809522a435c0673515cbe56bd60a7df3 --- libs/horizon/src/horizonx/adapters/redux.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/horizon/src/horizonx/adapters/redux.ts b/libs/horizon/src/horizonx/adapters/redux.ts index 46d4b663..97b7a483 100644 --- a/libs/horizon/src/horizonx/adapters/redux.ts +++ b/libs/horizon/src/horizonx/adapters/redux.ts @@ -71,7 +71,9 @@ function mergeData(state, data) { if (typeof data === 'object' && typeof state?.stateWrapper === 'object') { Object.keys(state.stateWrapper).forEach(key => { - if (!Object.prototype.hasOwnProperty.call(data, key)) delete state.stateWrapper[key]; + if (!Object.prototype.hasOwnProperty.call(data, key)) { + delete state.stateWrapper[key]; + } }); Object.entries(data).forEach(([key, value]) => {