mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 02:48:21 +00:00
Only Set Initial Values if not Undefined
This commit is contained in:
parent
35fc517b13
commit
89abf82d1b
1 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,8 @@ const onSubmit = handleSubmit(values => {
|
||||||
// idk why this is needed
|
// idk why this is needed
|
||||||
Object.assign(values, initialValues);
|
Object.assign(values, initialValues);
|
||||||
onMounted(async() => {
|
onMounted(async() => {
|
||||||
setValues(initialValues);
|
if (initialValues != undefined)
|
||||||
|
setValues(initialValues);
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Reference in a new issue