Skip to content

Commit ea288c3

Browse files
committed
fix(skeleton): iterate over new keys instead of old keys in replaceObjectProperties
1 parent d6a3984 commit ea288c3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

skeleton/src/utils/api.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ const replaceObjectProperties = (
114114
const copy: Record<string, unknown> = {};
115115
let equalItems = 0;
116116

117-
for (let i = 0; i < newSize; ++i) {
118-
const key = oldKeys[i];
117+
for (const key of newKeys) {
119118
copy[key] = extendedReplaceEqualDeep(oldData[key], newData[key]);
120119

121120
if (copy[key] === oldData[key]) {

0 commit comments

Comments
 (0)