From 8d8d4ee26ada1552dc946a4c6c292d92791996fd Mon Sep 17 00:00:00 2001 From: Oriol Mirosa Date: Thu, 8 Jun 2017 21:05:06 -0400 Subject: [PATCH] Attempt to fix bug #18 --- CHANGELOG.md | 4 ++++ lib/open-files-pane-view.js | 3 +++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba4e971..6dfb10f 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.7.2 + +- Attemp to fix bug [#18](https://github.com/oriolmirosa/open-files/issues/18) + ## 0.7.1 - Added a donation button to the readme page diff --git a/lib/open-files-pane-view.js b/lib/open-files-pane-view.js index 11d2925..d30914e 100755 --- a/lib/open-files-pane-view.js +++ b/lib/open-files-pane-view.js @@ -88,6 +88,9 @@ export default class OpenFilesPaneView { var itemPath try { itemPath = item.getPath() + if (itemPath == null) { + itemPath = '' + } listItemName.setAttribute('data-path', itemPath); if (addIconToElement) { listItemName.classList.remove('icon-file-text');