Skip to content

Commit

Permalink
(fix shadowing of 'id')
Browse files Browse the repository at this point in the history
  • Loading branch information
dslmeinte committed Jul 25, 2023
1 parent 8ce6088 commit e96d22c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/deserializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ export const deserializeModel = <NT extends Node>(
const childIds = serializedChildrenPerKey[feature.key].flatMap((serChildren) => serChildren.children) as Id[]
if (feature.multiple) {
childIds
.forEach((id) => {
modelAPI.setFeatureValue(node, feature, instantiateMemoised(serializedNodeById[id], node))
.forEach((childId) => {
modelAPI.setFeatureValue(node, feature, instantiateMemoised(serializedNodeById[childId], node))
})
} else {
if (childIds.length > 0) {
Expand Down

0 comments on commit e96d22c

Please sign in to comment.