mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix null handling
This commit is contained in:
parent
7cc484b3ec
commit
d62550bb3b
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ const UserProfiles: FunctionComponent = () => {
|
|||
|
||||
const showUserMenu = (elem: HTMLElement) => {
|
||||
const card = dom.parentWithClass(elem, 'card');
|
||||
const userId = card.getAttribute('data-userid');
|
||||
const userId = card?.getAttribute('data-userid');
|
||||
|
||||
if (!userId) {
|
||||
console.error('Unexpected null user id');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue