mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add check for undefined elem in renderRecordings
This commit is contained in:
parent
4dd09a0586
commit
2b817073d8
1 changed files with 4 additions and 0 deletions
|
@ -2,6 +2,10 @@ define(["layoutManager", "loading", "cardBuilder", "apphost", "imageLoader", "sc
|
|||
"use strict";
|
||||
|
||||
function renderRecordings(elem, recordings, cardOptions, scrollX) {
|
||||
if (!elem) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (recordings.length) {
|
||||
elem.classList.remove("hide");
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue