diff --git a/staticfiles/static/js/map.js b/staticfiles/static/js/map.js index be911a1..71505a8 100644 --- a/staticfiles/static/js/map.js +++ b/staticfiles/static/js/map.js @@ -121,11 +121,7 @@ let app = new Vue({ }, computed: { current_unit: function () { - if (this.current_unit_uid) { - return this.current_unit_uid && this.getCurrentUnit(); - } else { - return null; - } + return this.current_unit_uid ? this.current_unit_uid && this.getCurrentUnit() : null; } }, methods: {