mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
possible fix for reading chat list from undefined
This commit is contained in:
parent
a7b32369b6
commit
cac628817d
1 changed files with 1 additions and 1 deletions
|
@ -452,7 +452,7 @@ export function getNewMessagesByDXCallsign(dxcallsign): [number, number, any] {
|
|||
let new_counter = 0;
|
||||
let total_counter = 0;
|
||||
let item_array = [];
|
||||
if (typeof dxcallsign !== "undefined") {
|
||||
if (typeof dxcallsign !== "undefined" && typeof chat.sorted_chat_list[dxcallsign] !== "undefined" ) {
|
||||
for (const key in chat.sorted_chat_list[dxcallsign]) {
|
||||
//console.log(chat.sorted_chat_list[dxcallsign][key])
|
||||
//item_array.push(chat.sorted_chat_list[dxcallsign][key])
|
||||
|
|
Loading…
Reference in a new issue