mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #882 from thornbill/safety-first
Add check for undefined elem in renderRecordings
This commit is contained in:
commit
2aa07e1a37
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