javascript is confusing sometimes

This commit is contained in:
IgnatzHome 2018-05-19 20:33:49 +02:00
parent 1d58e40133
commit b9ead144fb

View file

@ -159,7 +159,7 @@ class AdvancedFilter {
{
const field = commands[i-1].cmd;
const str = commands[i+1].cmd;
commands[i] = {}[field]=str;
commands[i] = {[field]:str};
commands.splice(i-1, 1);
commands.splice(i, 1);
//changed = true;