Skip to content

Commit

Permalink
fix(core): array field insert method crash in sparse array
Browse files Browse the repository at this point in the history
  • Loading branch information
dan0314 committed Oct 10, 2023
1 parent 8861ef5 commit c68d550
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/core/src/shared/internals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@ export const patchFieldStates = (
}
}
})
Object.keys(target).forEach((id)=> {
if(target[id] === undefined){
delete target[id]
}
})
}

export const destroy = (
Expand Down

0 comments on commit c68d550

Please sign in to comment.