Browse Source

javascript is confusing sometimes

IgnatzHome 7 năm trước cách đây
mục cha
commit
b9ead144fb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      client/lib/filter.js

+ 1 - 1
client/lib/filter.js

@@ -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;