fix(web): fix tdb response checking in js

This commit is contained in:
2023-02-17 23:51:45 +03:00
parent 880d4df453
commit c9b921becf
9 changed files with 53 additions and 49 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ function settings_load() {
$(window).on("load", function () {
let resp = tdb_query();
if (!resp.status) {
if (resp == null || !resp.status) {
alert("Failed to fetch databases");
throw new Error("Failed to fetch databases");
}