Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'web/assets/js/util/utils.js')
-rw-r--r--web/assets/js/util/utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/assets/js/util/utils.js b/web/assets/js/util/utils.js
index 9d6cb0d1..8bab58ec 100644
--- a/web/assets/js/util/utils.js
+++ b/web/assets/js/util/utils.js
@@ -176,7 +176,7 @@ class ObjectUtil {
}
}
} else {
- return obj.toString().toLowerCase().indexOf(key.toLowerCase()) >= 0;
+ return this.isEmpty(obj) ? false : obj.toString().toLowerCase().indexOf(key.toLowerCase()) >= 0;
}
return false;
}