Skip to content

Commit

Permalink
Update extension.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nicnacnic authored Jun 9, 2022
1 parent 3bda67c commit 0366082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
}
Expand Down

0 comments on commit 0366082

Please sign in to comment.