Skip to content

Commit

Permalink
Fixed regression that led to issue #13
Browse files Browse the repository at this point in the history
  • Loading branch information
oriolmirosa committed May 19, 2017
1 parent 83058bd commit ead4c24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.5.7

- Fixed regression that led to [#13](https://github.com/oriolmirosa/open-files/issues/13)

## 0.5.6

- Fix for [#10](https://github.com/oriolmirosa/open-files/issues/10)
Expand Down
2 changes: 1 addition & 1 deletion lib/open-files-pane-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export default class OpenFilesPaneView {

removeEntry(item) {
let index = _.findIndex(this.items, entry => entry.item === item);
if (index && index >= 0) {
if (index >= 0) {
this.items[index].element.remove();
this.items.splice(index, 1);
let itemFullPath
Expand Down

0 comments on commit ead4c24

Please sign in to comment.