diff --git a/layout.html b/layout.html
index dba2b45..75477e2 100755
--- a/layout.html
+++ b/layout.html
@@ -471,7 +471,7 @@
thisRow.setAttribute("data-season", row['season']);
thisRow.setAttribute("data-episode-number", row['episode_number']);
thisRow.setAttribute("data-duration", row['duration_secs']);
- if (row['edl_definition'] !== undefined) {
+ if (row['edl_definition'] !== null) {
console.log("EDL found:");
console.dir(row['edl_definition']);
const edl = JSON.parse(row['edl_definition']);