Preserve selection on exiting owner mode

This commit is contained in:
Dan
2019-04-07 17:43:10 +01:00
parent 2b868821d5
commit f2951fb51f
+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':