diff --git a/list-editor/store.js b/list-editor/store.js index 5478255..d814d28 100644 --- a/list-editor/store.js +++ b/list-editor/store.js @@ -455,7 +455,7 @@ function Store(inputData) { let removeLevel = 9999999999; _.each(inputData, (d) => { - if (d.text.startsWith("{{query:")) { + if (d.text && d.text.startsWith("{{query:")) { removeLevel = d.indented; append(d) } else if (d.indented <= removeLevel) {