From 1a083fc8614916b012b148bcdcfd733a04f21002 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Wed, 17 May 2023 18:00:31 +0200 Subject: [PATCH] chore(core): cleanup --- packages/core/src/utils/store.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/src/utils/store.ts b/packages/core/src/utils/store.ts index 856ce678..7a1a1559 100644 --- a/packages/core/src/utils/store.ts +++ b/packages/core/src/utils/store.ts @@ -1,11 +1,11 @@ -import { unref } from 'vue' -import { ErrorCode, VueFlowError, connectionExists, getEdgeId, isEdge, parseEdge, parseNode } from '.' +import { toValue } from '@vueuse/core' +import { ErrorCode, VueFlowError, connectionExists, getEdgeId, isEdge, isNode, parseEdge, parseNode } from '.' import type { Actions, Connection, Edge, GraphEdge, GraphNode, Node, State } from '~/types' type NonUndefined = T extends undefined ? never : T export function isDef(val: T): val is NonUndefined { - const unrefVal = unref(val) + const unrefVal = toValue(val) return typeof unrefVal !== 'undefined' }