Skip to content

Commit afecf35

Browse files
committed
Fixed: Preserve default panel id on tabs data saving
May be the reason for: #104, #262, #319...etc (Tabs in wrong panels on init)
1 parent ad522eb commit afecf35

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/sidebar/actions/tabs.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,9 +517,8 @@ function saveTabsData(delay = 300) {
517517
let pinnedLen = 0
518518
for (let tab of this.state.tabs) {
519519
if (tab.pinned) pinnedLen++
520-
let info = { id: tab.id, url: tab.url }
520+
let info = { id: tab.id, url: tab.url, panelId: tab.panelId }
521521
if (tab.parentId > -1) info.parentId = tab.parentId
522-
if (tab.panelId !== DEFAULT_CTX_ID) info.panelId = tab.panelId
523522
if (tab.folded) info.folded = tab.folded
524523
if (tab.cookieStoreId !== DEFAULT_CTX_ID) info.ctx = tab.cookieStoreId
525524
data.push(info)

0 commit comments

Comments
 (0)