diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2021-01-14 15:35:03 +0100 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2021-01-14 15:35:03 +0100 |
commit | 56f0876184a792cff3c6123c95d9e52eaa450a28 (patch) | |
tree | 8d3856a4cbefe7a3eb5c1503432c974d88d47570 /client/src | |
parent | 51de2c7ff3304a553d4e422c2eef23910edf5b55 (diff) | |
download | PeerTube-56f0876184a792cff3c6123c95d9e52eaa450a28.tar.gz PeerTube-56f0876184a792cff3c6123c95d9e52eaa450a28.tar.zst PeerTube-56f0876184a792cff3c6123c95d9e52eaa450a28.zip |
fix undefined dropdown on user logout
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/menu/menu.component.ts | 2 |
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 | ||