testing theorie: subcommands are allways 1 entry

This commit is contained in:
IgnatzHome 2018-05-20 13:19:18 +02:00
parent 59046d448f
commit 6d9ac3ae48

View file

@ -205,7 +205,11 @@ class AdvancedFilter {
if (start !== -1)
{
this._processSubCommands(subcommands);
commands.splice(start, 0, subcommands);
console.log ('subcommands: ', subcommands.length);
if (subcommands.length === 1)
commands.splice(start, 0, subcommands[0]);
else
commands.splice(start, 0, subcommands);
}
this._processConditions(commands);
console.log('Conditions: ', JSON.stringify(commands));