From dd7ce6a19c4bee604583fc5747a657235a884108 Mon Sep 17 00:00:00 2001 From: Chen Wen Kang <23054115+cwkang1998@users.noreply.github.com> Date: Fri, 8 Nov 2024 00:51:54 +0700 Subject: [PATCH] fix: lost of CRO context in `resolveConflicts` (#243) --- packages/object/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/object/src/index.ts b/packages/object/src/index.ts index baf19fd8..3389003a 100644 --- a/packages/object/src/index.ts +++ b/packages/object/src/index.ts @@ -56,7 +56,7 @@ export class TopologyObject implements ITopologyObject { this.cro = new Proxy(cro, this.proxyCROHandler()); this.hashGraph = new HashGraph( nodeId, - cro.resolveConflicts, + cro.resolveConflicts.bind(cro), cro.semanticsType, ); this.subscriptions = [];