mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix null reference TypeScript error
This commit is contained in:
parent
12d0ac2ff0
commit
12374b12b9
1 changed files with 5 additions and 0 deletions
|
@ -47,6 +47,11 @@ const UserProfilesPage: FunctionComponent = () => {
|
||||||
const card = dom.parentWithClass(elem, 'card');
|
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');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const menuItems: MenuEntry[] = [];
|
const menuItems: MenuEntry[] = [];
|
||||||
|
|
||||||
menuItems.push({
|
menuItems.push({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue