From 6033ff8a881dee26356a171692ddd02d407afda1 Mon Sep 17 00:00:00 2001 From: Julian Lehrhuber Date: Mon, 4 Mar 2024 16:44:01 +0100 Subject: [PATCH] Fix `getStoredPositions` The old implementation tried to create the `RelativePosition` from JSON, however the passed-in argument is a Uint8Array rather than JSON. --- packages/core/src/utils/position.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/utils/position.ts b/packages/core/src/utils/position.ts index ee95c0e9..b093f583 100644 --- a/packages/core/src/utils/position.ts +++ b/packages/core/src/utils/position.ts @@ -99,7 +99,7 @@ export function getStoredPositions( .filter(([key]) => key.startsWith(STORED_POSITION_PREFIX)) .map(([key, position]) => [ key.slice(STORED_POSITION_PREFIX.length), - Y.createRelativePositionFromJSON(position), + Y.decodeRelativePosition(position), ]) ); }