Skip to content

Commit

Permalink
TAB-486 move "tabsets description" to "tabsets header" logic
Browse files Browse the repository at this point in the history
  • Loading branch information
evandor committed Feb 14, 2024
1 parent 62cad91 commit 08c6a73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/IndexedDbPersistenceService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ class IndexedDbPersistenceService implements PersistenceService {
}

async updateWindow(window: Window): Promise<void> {
console.debug(`updating window id=${window.id}, title=${window.title}, index=${window.index}, #hostList=${window.hostList.length}`)
console.debug(`updating window id=${window.id}, title=${window.title}, index=${window.index}, #hostList=${window.hostList?.length}`)
if (!window.id) {
return Promise.reject("window.id not set")
}
Expand All @@ -622,7 +622,7 @@ class IndexedDbPersistenceService implements PersistenceService {

asJson['title'] = window.title
asJson['index'] = window.index
asJson['hostList'] = Array.from(window.hostList)
asJson['hostList'] = window.hostList ? Array.from(window.hostList) : []

delete asJson['tabs']
console.debug("saving window json as ", asJson)
Expand Down

0 comments on commit 08c6a73

Please sign in to comment.