mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39: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
|
|
@ -49,9 +49,9 @@ export class DateTest extends TestCommand
|
|||
this.originalzone = true;
|
||||
} else if (':last' === arg) {
|
||||
this.last = true;
|
||||
} else if (':zone' === args[i-1]) {
|
||||
} else if (i && ':zone' === args[i-1]) {
|
||||
this.zone.value = arg.value;
|
||||
} else if (':index' === args[i-1]) {
|
||||
} else if (i && ':index' === args[i-1]) {
|
||||
this.index.value = arg.value;
|
||||
}
|
||||
});
|
||||
|
|
@ -85,7 +85,7 @@ export class CurrentDateTest extends TestCommand
|
|||
this.key_list = args.pop();
|
||||
this.date_part = args.pop();
|
||||
args.forEach((arg, i) => {
|
||||
if (':zone' === args[i-1]) {
|
||||
if (i && ':zone' === args[i-1]) {
|
||||
this.zone.value = arg.value;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue