We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aab43d5 commit e2ce205Copy full SHA for e2ce205
.changeset/mean-horses-swim.md
@@ -0,0 +1,5 @@
1
+---
2
+"@vue-flow/core": patch
3
4
+
5
+Correct access of options id in `useVueFlow`
packages/core/src/composables/useVueFlow.ts
@@ -30,9 +30,9 @@ export function useVueFlow(idOrOpts?: any): VueFlowStore {
30
31
const isOptsObj = typeof idOrOpts === 'object'
32
33
- const options = isOptsObj ? idOrOpts : undefined
+ const options = isOptsObj ? idOrOpts : { id: idOrOpts }
34
35
- const id = options?.id ?? idOrOpts
+ const id = options.id
36
const vueFlowId = scope?.vueFlowId || id
37
38
let vueFlow: Injection
0 commit comments