Skip to content

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 brave#10094

Auditors: @bsclifton
  • Loading branch information
bbondy committed Aug 15, 2017
1 parent 46b16c5 commit 0a599c6
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 @@ -393,7 +393,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 0a599c6

Please sign in to comment.