fix(core): allow null values to be set
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -5,7 +5,7 @@ type NonUndefined<T> = T extends undefined ? never : T
|
||||
export function isDef<T>(val: T): val is NonUndefined<T> {
|
||||
const unrefVal = unref(val)
|
||||
|
||||
return typeof unrefVal !== 'undefined' && unrefVal !== null
|
||||
return typeof unrefVal !== 'undefined'
|
||||
}
|
||||
|
||||
export function addEdgeToStore(edgeParams: Edge | Connection, edges: Edge[], onError: State['hooks']['error']['trigger']) {
|
||||
|
||||
Reference in New Issue
Block a user