Remove stations when they are sent via TACTICAL with an empty tactical

instead of just adding them with no tactical
This commit is contained in:
Adam Goldsmith 2019-07-13 07:50:14 -04:00
parent 6288493fea
commit 25fd458935

View File

@ -98,7 +98,11 @@ export default {
) {
message.data.text.split(";").map(tac_assoc => {
let [call, tac] = tac_assoc.split("=", 2);
this.trackedStations[call] = tac;
if (tac) {
this.trackedStations[call] = tac;
} else {
delete this.trackedStations[call];
}
});
}
}