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

Commit

Permalink
Default action value to empty map to prevent call to get on undefined
Browse files Browse the repository at this point in the history
Auditors: @petemill
  • Loading branch information
bsclifton authored and petemill committed May 10, 2018
1 parent 638f5f3 commit 6ffe5ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/renderer/reducers/frameReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const frameReducer = (state, action, immutableAction) => {
case appConstants.APP_TAB_UPDATED:
// This case will be fired for both tab creation and tab update.
const tab = immutableAction.get('tabValue')
const changeInfo = immutableAction.get('changeInfo')
const changeInfo = immutableAction.get('changeInfo') || Immutable.Map()
if (!tab) {
break
}
Expand Down

0 comments on commit 6ffe5ef

Please sign in to comment.