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
@@ -1,6 +1,6 @@
$(window).on("load", function (e) {
let resp = tdb_query(db_name);
if (!resp.status) {
if (resp == null || !resp.status) {
alert("Failed to fetch database");
throw new Error("Failed to fetch database");
}