Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Immutable delete properly for nested data
Browse files Browse the repository at this point in the history
This is a follow up for #10094

Auditors: @bsclifton
  • Loading branch information
bbondy committed Aug 15, 2017
1 parent e2e737a commit 2fc6896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/sessionStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ module.exports.cleanAppData = (immutableData, isShutdown) => {

if (immutableData.get('extensions')) {
Array.from(immutableData.get('extensions').keys()).forEach((extensionId) => {
immutableData = immutableData.delete('extensions', extensionId, 'tabs')
immutableData = immutableData.deleteIn(['extensions', extensionId, 'tabs'])
})
}
return immutableData
Expand Down

0 comments on commit 2fc6896

Please sign in to comment.