fix: typings

This commit is contained in:
Braks
2021-10-22 14:29:27 +02:00
parent cb96b1ab00
commit 6ec8258f33
50 changed files with 165 additions and 142 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
import { ElementId, FlowStore, UpdateNodeInternals } from '~/types'
import { ElementId, UpdateNodeInternals } from '~/types'
import useStore from '~/composables/useStore'
export default (store: FlowStore): UpdateNodeInternals =>
export default (store = useStore()): UpdateNodeInternals =>
(id: ElementId) => {
const nodeElement: HTMLDivElement | null = document.querySelector(`.vue-flow__node[data-id="${id}"]`)