Fix test for list-editor
All checks were successful
continuous-integration/drone/push Build is passing

Skip query check when no text is set
This commit is contained in:
Peter Stuifzand 2021-08-24 21:30:41 +02:00
parent 685fc26839
commit 38f3c58da9

View File

@ -455,7 +455,7 @@ function Store(inputData) {
let removeLevel = 9999999999; let removeLevel = 9999999999;
_.each(inputData, (d) => { _.each(inputData, (d) => {
if (d.text.startsWith("{{query:")) { if (d.text && d.text.startsWith("{{query:")) {
removeLevel = d.indented; removeLevel = d.indented;
append(d) append(d)
} else if (d.indented <= removeLevel) { } else if (d.indented <= removeLevel) {