Skip to content

Commit

Permalink
fix(ui): Folder Panel data goes out of sync between state.collection …
Browse files Browse the repository at this point in the history
…& state.tabs causing persistence issues when switching tabs in both file workspaces and indexeddb workspaces
  • Loading branch information
flawiddsouza committed Dec 12, 2024
1 parent 28a637b commit 7542470
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/ui/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1580,8 +1580,15 @@ export const store = createStore<State>({

await context.dispatch('refreshWorkspace')
} else {
console.log('collectionItem headers and authentication updated')
collectionItem.headers = headers
collectionItem.authentication = authentication

// keep tab properties in tabs in sync with collectionItem
const tab = store.state.tabs.find(tab => tab._id === collectionItem._id)
if(tab) {
Object.assign(tab, collectionItem)
}
}

return {
Expand Down

0 comments on commit 7542470

Please sign in to comment.