mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 20:13:07 +00:00
Merge pull request #4181 from thelounge/maxleiter/fixQueryModes
Fix client crash when opening a user context menu in query
This commit is contained in:
commit
500034ff5d
1 changed files with 2 additions and 2 deletions
|
@ -245,8 +245,8 @@ export function generateUserContextMenu($root, channel, network, user) {
|
|||
},
|
||||
];
|
||||
|
||||
// Bail because we don't have a special mode.
|
||||
if (currentChannelUser.modes.length < 1) {
|
||||
// Bail because we're in a query or we don't have a special mode.
|
||||
if (!currentChannelUser.modes || currentChannelUser.modes.length < 1) {
|
||||
return items;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue