summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/lib/filter.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/lib/filter.js b/client/lib/filter.js
index 60c2bc84..73a0da99 100644
--- a/client/lib/filter.js
+++ b/client/lib/filter.js
@@ -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));