aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/menu/menu.component.ts
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2021-01-14 15:35:03 +0100
committerRigel Kent <sendmemail@rigelk.eu>2021-01-14 15:35:03 +0100
commit56f0876184a792cff3c6123c95d9e52eaa450a28 (patch)
tree8d3856a4cbefe7a3eb5c1503432c974d88d47570 /client/src/app/menu/menu.component.ts
parent51de2c7ff3304a553d4e422c2eef23910edf5b55 (diff)
downloadPeerTube-56f0876184a792cff3c6123c95d9e52eaa450a28.tar.gz
PeerTube-56f0876184a792cff3c6123c95d9e52eaa450a28.tar.zst
PeerTube-56f0876184a792cff3c6123c95d9e52eaa450a28.zip
fix undefined dropdown on user logout
Diffstat (limited to 'client/src/app/menu/menu.component.ts')
-rw-r--r--client/src/app/menu/menu.component.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/menu/menu.component.ts b/client/src/app/menu/menu.component.ts
index 50ff0e2b3..ed20d9c01 100644
--- a/client/src/app/menu/menu.component.ts
+++ b/client/src/app/menu/menu.component.ts
@@ -228,7 +228,7 @@ export class MenuComponent implements OnInit {
228 228
229 // Close dropdown when window scroll to avoid dropdown quick jump for re-position 229 // Close dropdown when window scroll to avoid dropdown quick jump for re-position
230 const onWindowScroll = () => { 230 const onWindowScroll = () => {
231 this.dropdown.close() 231 this.dropdown?.close()
232 window.removeEventListener('scroll', onWindowScroll) 232 window.removeEventListener('scroll', onWindowScroll)
233 } 233 }
234 234