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 b64b54b commit 2475dd3Copy full SHA for 2475dd3
packages/collaboration/src/collaboratorspanel.tsx
@@ -99,12 +99,13 @@ export class CollaboratorsPanel extends Panel {
99
const state = this._awareness.getStates() as any;
100
const collaborators: ICollaboratorAwareness[] = [];
101
102
- state.forEach((value: ICollaboratorAwareness, key: any) => {
+ state.forEach((value: Partial<ICollaboratorAwareness>, key: any) => {
103
if (
104
this._currentUser.isReady &&
105
+ value.user &&
106
value.user.username !== this._currentUser.identity!.username
107
) {
- collaborators.push(value);
108
+ collaborators.push(value as ICollaboratorAwareness);
109
}
110
});
111
this._collaboratorsChanged.emit(collaborators);
0 commit comments