From 03660826fae24bc3499a3927dfb6b8b5b166afd1 Mon Sep 17 00:00:00 2001 From: nicnacnic Date: Wed, 8 Jun 2022 21:10:32 -0400 Subject: [PATCH] Update extension.js --- extension.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension.js b/extension.js index 58b6741..956db6d 100644 --- a/extension.js +++ b/extension.js @@ -160,7 +160,7 @@ module.exports = (nodecg) => { runs: [], }; - if (runDataArray.value.length > 0) { + if (runDataArray.value.length > 0 && runDataActiveRun.value !== undefined) { let index = runDataArray.value.findIndex(x => x.id === runDataActiveRun.value.id); data.value.runs = JSON.parse(JSON.stringify(runDataArray.value.slice(index + 1, index + 6))); }