fix: prevent falsy values from stopping prop watcher
This commit is contained in:
@@ -221,7 +221,7 @@ export default (models: ToRefs<Pick<FlowProps, 'nodes' | 'edges' | 'modelValue'>
|
|||||||
watch(
|
watch(
|
||||||
() => model,
|
() => model,
|
||||||
() => {
|
() => {
|
||||||
if (model && isDef(model)) {
|
if (isDef(model)) {
|
||||||
storedValue.value = model
|
storedValue.value = model
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user