From 5c083cfdc859399b5f250e3733a29eb9a4702558 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Guimar=C3=A3es?= Date: Mon, 22 May 2017 13:51:19 +0100 Subject: [PATCH] :bug: fix #149 :memo: update CHANGELOG --- CHANGELOG.md | 6 ++++++ src/status-bar.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77a2374..d8fc31d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [1.1.2] - 2017-05-22 + +### Fixed + +- Bad workflow for status-bar issues ([149])(https://github.com/jccguimaraes/atom-project-viewer/issues/149). + ## [1.1.1] - 2017-05-22 ### Fixed diff --git a/src/status-bar.js b/src/status-bar.js index 608774e..28bcb6a 100644 --- a/src/status-bar.js +++ b/src/status-bar.js @@ -2,7 +2,7 @@ const map = require('./map'); const update = function _update (text) { if (!text) { return; } - if (!statusBar.view && typeof statusBar.view.getItem !== 'function') { + if (!statusBar.view || typeof statusBar.view.getItem !== 'function') { return; } const item = statusBar.view.getItem();