add null check
This commit is contained in:
parent
4b956fdff0
commit
724e334c26
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ function tick_pattern() {
|
|||
|
||||
let parsed = pattern.parsed;
|
||||
|
||||
if (parsed.length > 0) {
|
||||
if (parsed && parsed.length > 0) {
|
||||
for (let i = 0; i < cfg.leds; i++) {
|
||||
for (let id in parsed) {
|
||||
let command = parsed[id];
|
||||
|
|
Loading…
Reference in a new issue