diff options
author | IgnatzHome <ignatz@maschath.de> | 2018-05-20 13:19:18 +0200 |
---|---|---|
committer | IgnatzHome <ignatz@maschath.de> | 2018-05-20 13:19:18 +0200 |
commit | 6d9ac3ae488d66c4f2ce116f0861ad59faa49de2 (patch) | |
tree | 4658bfdf543ea41b19a173f3430dc09efbc188f3 /client | |
parent | 59046d448ffc4c24f94043346d930b67dfd9e138 (diff) | |
download | wekan-6d9ac3ae488d66c4f2ce116f0861ad59faa49de2.tar.gz wekan-6d9ac3ae488d66c4f2ce116f0861ad59faa49de2.tar.bz2 wekan-6d9ac3ae488d66c4f2ce116f0861ad59faa49de2.zip |
testing theorie: subcommands are allways 1 entry
Diffstat (limited to 'client')
-rw-r--r-- | client/lib/filter.js | 6 |
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)); |