tolerate item without types

This commit is contained in:
Iuri Matias 2019-11-07 11:35:45 -05:00
parent a11f11520f
commit cf663da930
1 changed files with 2 additions and 1 deletions

View File

@ -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...