From 3f5c7ea1860542f41a53315c33eb9664e095071c Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Thu, 17 Mar 2022 18:30:36 +0100 Subject: [PATCH] update: return vueFlow even if scope doesnt exist --- src/composables/useVueFlow.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/composables/useVueFlow.ts b/src/composables/useVueFlow.ts index c53de5b7..e874d2a0 100644 --- a/src/composables/useVueFlow.ts +++ b/src/composables/useVueFlow.ts @@ -57,8 +57,8 @@ export default (options?: Partial>): UseVueFlo if (!vueFlow || (vueFlow && options?.id && options.id !== vueFlow.id)) { const name = options?.id ?? `vue-flow-${id++}` + vueFlow = storage.create(name, options) if (scope) { - vueFlow = storage.create(name, options) provide(VueFlow, storage.get(name)) scope.vueFlowId = name }