From c8ae7487f7d647b1b8bfef27c5065b65d62aefc6 Mon Sep 17 00:00:00 2001 From: codefactor-io Date: Wed, 7 Feb 2024 21:47:01 +0000 Subject: [PATCH] [CodeFactor] Apply fixes to commit c33d23f --- gui/src/js/messagesHandler.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gui/src/js/messagesHandler.ts b/gui/src/js/messagesHandler.ts index 1118eba9..e3647431 100644 --- a/gui/src/js/messagesHandler.ts +++ b/gui/src/js/messagesHandler.ts @@ -26,7 +26,11 @@ interface Message { } 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.sorted_chat_list = createSortedMessagesList(data); }