move 'selection' part of state into same object as rest of editor state
This commit is contained in:
parent
9e79537b6e
commit
297905a4af
8 changed files with 66 additions and 58 deletions
|
|
@ -54,6 +54,7 @@ function ShowMode(props: {mode: Mode, statechart: Statechart}) {
|
|||
|
||||
function getActiveLeafs(mode: Mode, sc: Statechart) {
|
||||
return new Set([...mode].filter(uid =>
|
||||
// @ts-ignore
|
||||
sc.uid2State.get(uid)?.children?.length === 0
|
||||
));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue