Skip to content

Commit f6ae038

Browse files
authored
fix: set localState to latest identifier in belongsTo when merging identifiers (#9263)
1 parent 40fa283 commit f6ae038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function mergeBelongsTo(graph: Graph, rel: ResourceEdge, op: MergeOperation): vo
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)