Skip to content

Commit 34d8100

Browse files
authored
fix: set localState to latest identifier in belongsTo when merging identifiers (#9263) (#9264)
1 parent 3990cc1 commit 34d8100

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/graph/src/-private/graph/operations/merge-identifier.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function mergeBelongsTo(graph: Graph, rel: BelongsToRelationship, op: MergeOpera
3939
rel.remoteState = op.value;
4040
}
4141
if (rel.localState === op.record) {
42-
rel.localState = op.record;
42+
rel.localState = op.value;
4343
notifyChange(graph, rel.identifier, rel.definition.key);
4444
}
4545
}

0 commit comments

Comments
 (0)