Fix setting tacticals via message to TACTICAL

This commit is contained in:
Adam Goldsmith 2023-07-15 08:20:22 -04:00
parent e14904e59b
commit 21d0c7cca3
1 changed files with 3 additions and 0 deletions

View File

@ -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];