diff --git a/packages/core/src/storage/namespace.ts b/packages/core/src/storage/namespace.ts index 1f21688f1..465e25df7 100644 --- a/packages/core/src/storage/namespace.ts +++ b/packages/core/src/storage/namespace.ts @@ -187,11 +187,8 @@ function getNamespacedStorageItems( ); if (layoutMember?.offset !== undefined && layoutMember?.slot !== undefined) { - item = { - ...item, - offset: layoutMember.offset, - slot: layoutMember.slot, - }; + item.offset = layoutMember.offset; + item.slot = layoutMember.slot; } storageItems.push(item);