Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

Commit

Permalink
🐛 Fix validation (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
jccguimaraes committed Dec 21, 2016
1 parent fc435a0 commit 7156a6e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/).

## [0.3.41] - 2016-12-21

### Fixed

- Fix `Add project folder` validation issues ([#105](https://github.com/jccguimaraes/atom-project-viewer/issues/105))

## [0.3.40] - 2016-12-21

### Added
Expand Down
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -672,8 +672,9 @@ const projectViewer = {
this.disposables.add(
atom.project.onDidChangePaths((paths) => {
const selectedModel = _utility.getSelectedProjectModel();
const type = selectedModel.type;
if (!selectedModel) { return; }
const type = selectedModel.type;
if (!type) { return; }
const selectedPaths = selectedModel[type + 'Paths'];
const changes = {
name: selectedModel[type + 'Name'],
Expand Down

0 comments on commit 7156a6e

Please sign in to comment.