mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
[CodeFactor] Apply fixes to commit c33d23f
This commit is contained in:
parent
c33d23f326
commit
c8ae7487f7
1 changed files with 5 additions and 1 deletions
|
@ -26,7 +26,11 @@ interface Message {
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function processFreedataMessages(data) {
|
export async function processFreedataMessages(data) {
|
||||||
if (typeof data !== "undefined" && typeof data.messages !== "undefined" && Array.isArray(data.messages)) {
|
if (
|
||||||
|
typeof data !== "undefined" &&
|
||||||
|
typeof data.messages !== "undefined" &&
|
||||||
|
Array.isArray(data.messages)
|
||||||
|
) {
|
||||||
chatStore.callsign_list = createCallsignListFromAPI(data);
|
chatStore.callsign_list = createCallsignListFromAPI(data);
|
||||||
chatStore.sorted_chat_list = createSortedMessagesList(data);
|
chatStore.sorted_chat_list = createSortedMessagesList(data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue