瀏覽代碼

javascript is confusing sometimes

IgnatzHome 7 年之前
父節點
當前提交
b9ead144fb
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;