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

View File

@ -116,6 +116,9 @@ function handleMessage(packet) {
message.data.text.split(';').map((tac_assoc) => { message.data.text.split(';').map((tac_assoc) => {
let [call, tac] = tac_assoc.split('=', 2); let [call, tac] = tac_assoc.split('=', 2);
if (tac) { if (tac) {
if (!Object.hasOwn(trackedStations.value, call)) {
trackedStations.value[call] = {};
}
trackedStations.value[call].tactical = tac; trackedStations.value[call].tactical = tac;
} else { } else {
delete trackedStations.value[call]; delete trackedStations.value[call];