Skip to content

Commit

Permalink
fix: set localState to latest identifier in belongsTo when merging id…
Browse files Browse the repository at this point in the history
…entifiers (#9263) (#9264)
  • Loading branch information
runspired authored Mar 19, 2024
1 parent 3990cc1 commit 34d8100
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function mergeBelongsTo(graph: Graph, rel: BelongsToRelationship, op: MergeOpera
rel.remoteState = op.value;
}
if (rel.localState === op.record) {
rel.localState = op.record;
rel.localState = op.value;
notifyChange(graph, rel.identifier, rel.definition.key);
}
}
Expand Down

0 comments on commit 34d8100

Please sign in to comment.