Merge pull request #882 from thornbill/safety-first
Add check for undefined elem in renderRecordings
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user