From 21d0c7cca3096167372089d9fe5b500da0a5bd43 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sat, 15 Jul 2023 08:20:22 -0400 Subject: [PATCH] Fix setting tacticals via message to TACTICAL --- src/StatusScreen.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/StatusScreen.vue b/src/StatusScreen.vue index 6c2575f..74e9c3a 100644 --- a/src/StatusScreen.vue +++ b/src/StatusScreen.vue @@ -116,6 +116,9 @@ function handleMessage(packet) { message.data.text.split(';').map((tac_assoc) => { let [call, tac] = tac_assoc.split('=', 2); if (tac) { + if (!Object.hasOwn(trackedStations.value, call)) { + trackedStations.value[call] = {}; + } trackedStations.value[call].tactical = tac; } else { delete trackedStations.value[call];