Skip to content

Commit

Permalink
chore(core): cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
  • Loading branch information
bcakmakoglu committed Jun 15, 2023
1 parent 3cd01e5 commit e5bb526
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/store/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function useActions(
state.hooks.updateNodeInternals.trigger(updateIds)
}

const findNode: Actions['findNode'] = <T extends GraphNode = GraphNode>(id) => {
const findNode: Actions['findNode'] = <T extends GraphNode = GraphNode>(id: string | undefined | null) => {
if (!id) {
return
}
Expand All @@ -78,7 +78,7 @@ export function useActions(
return node as T | undefined
}

const findEdge: Actions['findEdge'] = <T extends GraphEdge = GraphEdge>(id) => {
const findEdge: Actions['findEdge'] = <T extends GraphEdge = GraphEdge>(id: string | undefined | null) => {
if (!id) {
return
}
Expand Down
3 changes: 2 additions & 1 deletion packages/core/src/store/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ function defaultState(): State {

disableKeyboardA11y: false,
ariaLiveMessage: '',
}}
}
}

export function useState(opts?: FlowOptions): State {
const state = defaultState()
Expand Down

0 comments on commit e5bb526

Please sign in to comment.