Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lexoyo committed Dec 18, 2023
1 parent c4c5d41 commit 784b719
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/model/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ export function getParentByPersistentId(id: PersistantId, component: Component |

export function getStateDisplayName(child: Component, state: State): string {
const component = getParentByPersistentId(state.componentId, child)
console.log('getStateDisplayName', child, state, component)
const name = component?.getName() ?? '[Not found]'
const prefix = component?.get(COMPONENT_NAME_PREFIX) ?? `${name}'s`
return `${prefix ? prefix + ' ' : ''}${state.label || state.storedStateId}`
Expand Down

0 comments on commit 784b719

Please sign in to comment.