From 25fd4589358da0e86a056210aeb80da896021f8f Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sat, 13 Jul 2019 07:50:14 -0400 Subject: [PATCH] Remove stations when they are sent via TACTICAL with an empty tactical instead of just adding them with no tactical --- src/StatusScreen.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/StatusScreen.vue b/src/StatusScreen.vue index ae3363c..d2456ce 100644 --- a/src/StatusScreen.vue +++ b/src/StatusScreen.vue @@ -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]; + } }); } }