tolerate item without types
This commit is contained in:
parent
a11f11520f
commit
cf663da930
|
@ -97,7 +97,8 @@ class LogManager {
|
|||
this.currentStep += 1;
|
||||
|
||||
let newItem = this.all_data_ordered[this.currentStep]
|
||||
if (newItem.type.indexOf("log_") === 0) {
|
||||
|
||||
if (newItem && newItem.type && newItem.type.indexOf("log_") === 0) {
|
||||
this.logs.push(this.currentStep + ". " + newItem.name)
|
||||
} else {
|
||||
this.logs.push("") // easier to slice it after...
|
||||
|
|
Loading…
Reference in New Issue