test: migration from Python to JavaScript

This commit is contained in:
Francis Lachapelle
2021-11-04 16:43:14 -04:00
parent b622665359
commit 262400a92e
8 changed files with 187 additions and 42 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ class Preferences {
return obj
}
for (let k of Object.keys(obj)) {
if (typeof obj[k] == 'object') {
if (obj[k] && typeof obj[k] == 'object') {
let o = this.findKey(obj[k], key)
if (o !== null)
return o