Skip to content

Commit 6befda3

Browse files
committed
build: fix the build
1 parent 6c77c66 commit 6befda3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/core/src/y/extensions/RelativePositionMapping.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const RelativePositionMappingExtension = createExtension(
2323
position + (side === "right" ? 1 : -1),
2424
),
2525
ySyncPluginState.ytype,
26-
ySyncPluginState.attributionManager,
26+
ySyncPluginState.attributionManager || undefined,
2727
);
2828

2929
return () => {
@@ -32,8 +32,8 @@ export const RelativePositionMappingExtension = createExtension(
3232
) as typeof ySyncPluginState;
3333
const pos = posStore(
3434
editor.prosemirrorState.doc,
35-
curYSyncPluginState.ytype,
36-
curYSyncPluginState.attributionManager,
35+
curYSyncPluginState.ytype || undefined,
36+
curYSyncPluginState.attributionManager || undefined,
3737
);
3838

3939
// This can happen if the element is garbage collected

0 commit comments

Comments
 (0)