diff --git a/content/treestyletab/bookmarksOverlay.js b/content/treestyletab/bookmarksOverlay.js index 5e539709..45e624aa 100644 --- a/content/treestyletab/bookmarksOverlay.js +++ b/content/treestyletab/bookmarksOverlay.js @@ -79,7 +79,7 @@ var TreeStyleTabBookmarksService = { let index = aTreeStructure[i]; let parent = index > -1 ? aBookarmks[index] : null ; if (parent && (parent.folder || parent).isFolder) { - let folder = parent.folder || parent; + let folder = parent.isFolder ? parent : parent.folder ; this.BookmarksService.moveItem(item.id, folder.id, -1); item.folder = folder; }