fix(vue-flow): set applyDefault regardless of true/false

This commit is contained in:
bcakmakoglu
2022-06-01 15:46:06 +02:00
committed by Braks
parent 700156f16f
commit 42ea2de513

View File

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