mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
only process find if not undefined
This commit is contained in:
parent
f43bf44f51
commit
809ac01672
|
@ -235,8 +235,7 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||
},
|
||||
})
|
||||
.then(function (result) {
|
||||
|
||||
if (typeof result !== "undefined") {
|
||||
if (typeof(result.docs[0]) !== "undefined") {
|
||||
// handle result
|
||||
document.getElementById("user_info_callsign").value =
|
||||
result.docs[0].callsign;
|
||||
|
|
Loading…
Reference in a new issue