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
@@ -21,7 +21,7 @@ $(window).on("load", function () {
$(document).on("submit", "#menu-add form", function (e) {
e.preventDefault();
let resp = tdb_query(db_name, 18, $("#new-name").val());
if (!resp.status) {
if (resp == null || !resp.status) {
alert("Something went wrong!");
return;
}