We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c77c66 commit 6befda3Copy full SHA for 6befda3
1 file changed
packages/core/src/y/extensions/RelativePositionMapping.ts
@@ -23,7 +23,7 @@ export const RelativePositionMappingExtension = createExtension(
23
position + (side === "right" ? 1 : -1),
24
),
25
ySyncPluginState.ytype,
26
- ySyncPluginState.attributionManager,
+ ySyncPluginState.attributionManager || undefined,
27
);
28
29
return () => {
@@ -32,8 +32,8 @@ export const RelativePositionMappingExtension = createExtension(
32
) as typeof ySyncPluginState;
33
const pos = posStore(
34
editor.prosemirrorState.doc,
35
- curYSyncPluginState.ytype,
36
- curYSyncPluginState.attributionManager,
+ curYSyncPluginState.ytype || undefined,
+ curYSyncPluginState.attributionManager || undefined,
37
38
39
// This can happen if the element is garbage collected
0 commit comments