From 9a0842f2d15d7569a1800f0eccef1b58c0fb111e Mon Sep 17 00:00:00 2001 From: Joseph Coffland Date: Sun, 24 Jun 2018 16:31:34 -0700 Subject: [PATCH] Fixed initial Control view units combo state --- src/js/control-view.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/js/control-view.js b/src/js/control-view.js index ec4c5e7..05b253f 100644 --- a/src/js/control-view.js +++ b/src/js/control-view.js @@ -72,8 +72,11 @@ module.exports = { watch: { - 'state.imperial': function (imperial) { - this.mach_units = imperial ? 'IMPERIAL' : 'METRIC'; + 'state.imperial': { + handler: function (imperial) { + this.mach_units = imperial ? 'IMPERIAL' : 'METRIC'; + }, + immediate: true }, -- 2.27.0