Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ensure we dont overwrite anything in scenes map
  • Loading branch information
joenoon committed Mar 24, 2016
commit 97612c8480b1ce322f89bf97f70e0f5de45e6422
1 change: 1 addition & 0 deletions src/Reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ function update(state,action){
el.index = el.children.length - 1;
newState.scenes.current = getCurrent(newState).key;
if (newProps.ephemeral) {
assert(!newState.scenes.hasOwnProperty(newState.scenes.current), "scenes should not contain ephemeral key="+newState.scenes.current);
newState.scenes[newState.scenes.current] = newProps;
}
return newState;
Expand Down