fix: prevent falsy values from stopping prop watcher

This commit is contained in:
braks
2022-07-26 14:15:53 +02:00
committed by Braks
parent 97d89bf4c7
commit 93a9a99a85

View File

@@ -221,7 +221,7 @@ export default (models: ToRefs<Pick<FlowProps, 'nodes' | 'edges' | 'modelValue'>
watch(
() => model,
() => {
if (model && isDef(model)) {
if (isDef(model)) {
storedValue.value = model
}
},