File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 12
12
"Environment" : [
13
13
{
14
14
"Name" : " API_BASE_URL" ,
15
- "Value" : " Reactype-v17env .eba-sw2fhsbj.us-east-1.elasticbeanstalk.com"
15
+ "Value" : " Reactype-v19env .eba-sw2fhsbj.us-east-1.elasticbeanstalk.com"
16
16
}
17
17
]
18
18
}
Original file line number Diff line number Diff line change @@ -97,10 +97,10 @@ function Canvas(props: {}): JSX.Element {
97
97
// Removes the mouse cursor of the user that leaves the collaboration room.
98
98
const handleCursorDeleteFromServer = ( ) => {
99
99
setRemoteCursors ( ( prevRemoteCursors ) =>
100
- prevRemoteCursors . map ( ( cursor ) => ( {
101
- ... cursor ,
102
- isVisible : userList . includes ( cursor . remoteUserName )
103
- } ) )
100
+ // filter cursors to include only those in the userList
101
+ prevRemoteCursors . filter ( ( cursor ) =>
102
+ userList . includes ( cursor . remoteUserName )
103
+ )
104
104
) ;
105
105
} ;
106
106
You can’t perform that action at this time.
0 commit comments