mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Bugfix: sieve undefined args[i-1]
This commit is contained in:
parent
e6ea47e75f
commit
882c0bde42
8 changed files with 17 additions and 17 deletions
|
|
@ -69,13 +69,13 @@ export class DeleteHeaderCommand extends ActionCommand
|
|||
args.forEach((arg, i) => {
|
||||
if (':last' === arg) {
|
||||
this.last = true;
|
||||
} else if (':index' === args[i-1]) {
|
||||
} else if (i && ':index' === args[i-1]) {
|
||||
this.index.value = arg.value;
|
||||
args[i] = null;
|
||||
}
|
||||
});
|
||||
|
||||
if (args[l-1] instanceof GrammarString) {
|
||||
if (l && args[l-1] instanceof GrammarString) {
|
||||
this.field_name = args[l-1];
|
||||
this.value_patterns = args[l];
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue