Skip to content

Commit

Permalink
fixes #96 - fix tidyCurrent, tidyLeft, et al.
Browse files Browse the repository at this point in the history
  • Loading branch information
briangonzalez committed Jun 19, 2017
1 parent 7dfd688 commit 50fa68d
Show file tree
Hide file tree
Showing 5 changed files with 8,918 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7
8
2 changes: 1 addition & 1 deletion app/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const store = new Vuex.Store({
tabsToSave = tabsToClear
}

if (tabsToClear.length < 1) return tabsToClear
if (tabsToClear.length === 0) return tabsToClear

const tidyParent = await BookmarkManager.getTidyFolder()
const newFolder = await chromep.bookmarks.create({
Expand Down
4 changes: 2 additions & 2 deletions lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export async function tidyLeft () {
const filter = (tab) => tab.index < currentTab.index

const tabs = await store.dispatch('SAVE_TAB_GROUP', { filter })
removeTabs(tabs, false)
removeTabs(tabs)
}

export async function tidyCurrent () {
Expand All @@ -77,7 +77,7 @@ export async function tidyCurrent () {
const filter = (tab) => tab.index === currentTab.index

const tabs = await store.dispatch('SAVE_TAB_GROUP', { filter })
removeTabs(tabs, true)
removeTabs(tabs)
}

export async function tidyAllButCurrent () {
Expand Down
Loading

0 comments on commit 50fa68d

Please sign in to comment.