Skip to content

Commit 247d46d

Browse files
committed
Fix types
1 parent 932fefb commit 247d46d

File tree

1 file changed

+7
-5
lines changed
  • packages/app/src/app/overmind/namespaces/live

1 file changed

+7
-5
lines changed

packages/app/src/app/overmind/namespaces/live/actions.ts

+7-5
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,13 @@ export const sendCurrentSelection: Action = ({ state, effects }) => {
151151

152152
if (state.live.isCurrentEditor) {
153153
const { liveUserId } = state.live;
154-
effects.live.sendUserSelection(
155-
state.editor.currentModuleShortid,
156-
liveUserId,
157-
state.live.currentSelection
158-
);
154+
if (liveUserId) {
155+
effects.live.sendUserSelection(
156+
state.editor.currentModuleShortid,
157+
liveUserId,
158+
state.live.currentSelection
159+
);
160+
}
159161
}
160162
};
161163

0 commit comments

Comments
 (0)