Merge pull request #86 from gaearon/owner-stack-id

Preserve selection on exiting owner mode
This commit is contained in:
Brian Vaughn
2019-04-07 15:42:43 -07:00
committed by GitHub
+4 -1
View File
@@ -383,7 +383,10 @@ function reduceOwnersState(store: Store, state: State, action: Action): State {
case 'RESET_OWNER_STACK':
ownerStack = [];
ownerStackIndex = null;
selectedElementIndex = null;
selectedElementIndex =
selectedElementID !== null
? store.getIndexOfElementID(selectedElementID)
: null;
_ownerFlatTree = null;
break;
case 'SELECT_ELEMENT_AT_INDEX':