Browse Source

Fix app.Settings#applyLegacyValues when value is false

Thibaut 11 năm trước cách đây
mục cha
commit
20940d732a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      assets/javascripts/app/settings.coffee

+ 1 - 1
assets/javascripts/app/settings.coffee

@@ -19,7 +19,7 @@ class app.Settings
     return
 
   applyLegacyValues: (settings) ->
-    for key, v of settings when value = @store.get(key)
+    for key, v of settings when (value = @store.get(key))?
       settings[key] = value
       @store.del(key)
     return