From 2d9233fabb8b9bd66ab267143b25c3cb7e25d743 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sat, 13 Jul 2019 09:07:18 -0400 Subject: [PATCH] Keep only non-empty micE/comment --- src/StationRow.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/StationRow.vue b/src/StationRow.vue index 8b9cfe6..c419f17 100644 --- a/src/StationRow.vue +++ b/src/StationRow.vue @@ -85,8 +85,8 @@ export default { acc.lastVoltage = message.data.analog[0] / 10; acc.lastTemperature = message.data.analog[1]; } - acc.lastMicE = message.data.mice; - acc.lastComment = message.data.comment; + acc.lastMicE = message.data.mice || acc.lastMicE; + acc.lastComment = message.data.comment || acc.lastComment; } return acc; }, {})